[package]
edition = "2024"
rust-version = "1.99.0"
name = "decdn-node"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The deCDN node daemon (decdn-node): runtime, request handlers, payment settlement, and the admin RPC server"
homepage = "https://decdn.org"
readme = "README.md"
keywords = [
"decdn",
"cdn",
"p2p",
"iroh",
"blake3",
]
categories = [
"network-programming",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/decdn/decdn"
[features]
anvil-e2e = ["decdn-incentive/test-util"]
default = []
test-support = ["decdn-protocol/test-support"]
[lib]
name = "decdn_node"
path = "src/lib.rs"
[[bin]]
name = "decdn-node"
path = "src/main.rs"
[[test]]
name = "anvil_bringup_shutdown_e2e"
path = "tests/anvil_bringup_shutdown_e2e.rs"
[[test]]
name = "anvil_settlement_e2e"
path = "tests/anvil_settlement_e2e.rs"
[[test]]
name = "bucket_refresh_clock"
path = "tests/bucket_refresh_clock.rs"
[[test]]
name = "client_loopback"
path = "tests/client_loopback.rs"
[[test]]
name = "config_notice_replay_order"
path = "tests/config_notice_replay_order.rs"
[[test]]
name = "dht_bootstrap"
path = "tests/dht_bootstrap.rs"
[[test]]
name = "dht_integration"
path = "tests/dht_integration.rs"
[[test]]
name = "dht_lookup"
path = "tests/dht_lookup.rs"
[[test]]
name = "dht_loopback"
path = "tests/dht_loopback.rs"
[[test]]
name = "json_log_node_id"
path = "tests/json_log_node_id.rs"
[[test]]
name = "no_early_data_emitters"
path = "tests/no_early_data_emitters.rs"
[[test]]
name = "node_origin_pull"
path = "tests/node_origin_pull.rs"
[[test]]
name = "node_to_node_pull_through"
path = "tests/node_to_node_pull_through.rs"
[[test]]
name = "origin_range_pull"
path = "tests/origin_range_pull.rs"
[[test]]
name = "partial_serve"
path = "tests/partial_serve.rs"
[[test]]
name = "pool_state_store"
path = "tests/pool_state_store.rs"
[[test]]
name = "probe_loopback"
path = "tests/probe_loopback.rs"
[[test]]
name = "probe_warm_reconnect"
path = "tests/probe_warm_reconnect.rs"
[[test]]
name = "sighup_signal"
path = "tests/sighup_signal.rs"
[[test]]
name = "support_teardown"
path = "tests/support_teardown.rs"
[dependencies.alloy]
version = "2"
features = [
"std",
"reqwest",
"essentials",
"providers",
"signers",
"signer-keystore",
"contract",
]
default-features = false
[dependencies.alloy-json-rpc]
version = "2"
[dependencies.anyhow]
version = "1"
[dependencies.arc-swap]
version = "1.7"
[dependencies.async-trait]
version = "0.1"
[dependencies.bao-tree]
version = "0.16"
[dependencies.bytes]
version = "1"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.crossbeam-queue]
version = "0.3"
[dependencies.dashmap]
version = "6"
[dependencies.decdn-bao-range]
version = "0.1.0"
[dependencies.decdn-cache]
version = "0.1.0"
[dependencies.decdn-client]
version = "0.1.0"
[dependencies.decdn-common]
version = "0.1.0"
features = ["admin-server"]
[dependencies.decdn-incentive]
version = "0.1.0"
features = ["buyer-store-core"]
[dependencies.decdn-protocol]
version = "0.1.0"
[dependencies.decdn-reputation]
version = "0.1.0"
[dependencies.dirs]
version = "7"
[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false
[dependencies.governor]
version = "0.10"
[dependencies.http-body-util]
version = "0.1"
[dependencies.hyper]
version = "1"
features = [
"server",
"http1",
]
[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
[dependencies.indexmap]
version = "2"
[dependencies.iroh]
version = "1.3"
[dependencies.iroh-blobs]
version = "0.103"
features = ["fs-store"]
[dependencies.iroh-io]
version = "0.6"
default-features = false
[dependencies.iroh-metrics]
version = "1"
[dependencies.jsonrpsee]
version = "0.26"
features = [
"http-client",
"macros",
"server",
]
[dependencies.noq-proto]
version = "1"
default-features = false
[dependencies.opentelemetry]
version = "0.33"
[dependencies.opentelemetry-otlp]
version = "0.33"
features = [
"grpc-tonic",
"trace",
"internal-logs",
]
default-features = false
[dependencies.opentelemetry_sdk]
version = "0.33"
features = ["rt-tokio"]
[dependencies.postcard]
version = "1"
features = ["alloc"]
[dependencies.rand]
version = "0.10"
[dependencies.redb]
version = "4.2"
[dependencies.reqwest]
version = "0.13"
features = [
"rustls-no-provider",
"stream",
"json",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.socket2]
version = "0.6"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-util]
version = "0.7"
features = [
"io",
"rt",
]
[dependencies.toml]
version = "1"
[dependencies.tower]
version = "0.5"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-opentelemetry]
version = "0.34"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
"registry",
]
[dependencies.url]
version = "2"
[dev-dependencies.decdn-client]
version = "0.1.0"
features = ["test-util"]
[dev-dependencies.decdn-incentive]
version = "0.1.0"
features = ["test-util"]
[dev-dependencies.nix]
version = "0.31"
features = ["signal"]
default-features = false
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio-util]
version = "0.7"
features = [
"io",
"rt",
]
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
assert_is_empty = "allow"
cast_possible_truncation = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
cognitive_complexity = "warn"
dbg_macro = "deny"
expect_used = "deny"
indexing_slicing = "deny"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "warn"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
semicolon_if_nothing_returned = "warn"
todo = "deny"
trivially_copy_pass_by_ref = "warn"
unimplemented = "deny"
uninlined_format_args = "warn"
unused_async_trait_impl = "allow"
unused_self = "warn"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"