0801b3c6f8
* exit policy types * simple client for grabbing the policy * moved allowed_hosts to a submodule * started integrating exit policy into a NR * ability to construct ExitPolicyRequestFilter * fixed policy parsing to look for comment char from the left * conditionally setting up request filter * [wip] setting up correct url for exit policy upstream * clap flags for running with exit policy * fixed NR template * updated NR config template * making sure to perform request filtering in separate task * initial, placeholder, exit policy API endpoint * serving exit policy from an embedded NR * double slash sanitization * socks5 query for exit policy * adjusted address policy logging * cargo fmt * Updated exit policy url to point to the correct mainnet file * removed unecessary mutability in filter tests * fixed the code block showing example policy being interpreted as doc test
41 lines
1.3 KiB
TOML
41 lines
1.3 KiB
TOML
[package]
|
|
name = "nym-node-requests"
|
|
version = "0.1.0"
|
|
authors.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
documentation.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
base64 = { workspace = true }
|
|
schemars = { workspace = true, features = ["preserve_order"] }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
|
|
nym-crypto = { path = "../../common/crypto", features = ["asymmetric"] }
|
|
nym-exit-policy = { path = "../../common/exit-policy" }
|
|
nym-wireguard-types = { path = "../../common/wireguard-types", default-features = false }
|
|
|
|
# feature-specific dependencies:
|
|
|
|
## client:
|
|
async-trait = { workspace = true, optional = true }
|
|
http-api-client = { path = "../../common/http-api-client", optional = true }
|
|
|
|
## openapi:
|
|
utoipa = { workspace = true, optional = true }
|
|
nym-bin-common = { path = "../../common/bin-common", features = ["bin_info_schema"] }
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true, features = ["full"] }
|
|
|
|
[features]
|
|
default = ["client"]
|
|
client = ["http-api-client", "async-trait"]
|
|
openapi = ["utoipa", "nym-bin-common/openapi", "nym-wireguard-types/openapi", "nym-exit-policy/openapi"]
|