[package]
edition = "2024"
rust-version = "1.99.0"
name = "decdn-cli"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "User-facing deCDN CLI (decdn binary): probe, fetch, pools, publishing, origin import, node admin"
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"
[lib]
name = "decdn_cli"
path = "src/lib.rs"
[[bin]]
name = "decdn"
path = "src/main.rs"
[[test]]
name = "admin_rpc"
path = "tests/admin_rpc.rs"
[[test]]
name = "config_validate"
path = "tests/config_validate.rs"
[[test]]
name = "doctor_cli"
path = "tests/doctor_cli.rs"
[[test]]
name = "get_node_dir_guard"
path = "tests/get_node_dir_guard.rs"
[[test]]
name = "key_gen_e2e"
path = "tests/key_gen_e2e.rs"
[[test]]
name = "key_gen_password_sources"
path = "tests/key_gen_password_sources.rs"
[[test]]
name = "key_gen_prompt_pty"
path = "tests/key_gen_prompt_pty.rs"
[[test]]
name = "origin_import"
path = "tests/origin_import.rs"
[[test]]
name = "origin_import_dryrun"
path = "tests/origin_import_dryrun.rs"
[[test]]
name = "pool_lifecycle"
path = "tests/pool_lifecycle.rs"
[[test]]
name = "pool_list"
path = "tests/pool_list.rs"
[[test]]
name = "setup_redacts_rpc_error"
path = "tests/setup_redacts_rpc_error.rs"
[dependencies.alloy]
version = "2"
features = [
"std",
"reqwest",
"essentials",
"providers",
"signers",
"signer-keystore",
"contract",
]
default-features = false
[dependencies.anstyle-progress]
version = "0.1"
[dependencies.anyhow]
version = "1"
[dependencies.blake3]
version = "1"
[dependencies.bytes]
version = "1"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.decdn-bao-range]
version = "0.1.0"
[dependencies.decdn-client]
version = "0.1.0"
[dependencies.decdn-common]
version = "0.1.0"
[dependencies.decdn-config-types]
version = "0.1.0"
[dependencies.decdn-incentive]
version = "0.1.0"
features = ["redb"]
[dependencies.decdn-protocol]
version = "0.1.0"
[dependencies.fastcdc]
version = "5"
[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false
[dependencies.globset]
version = "0.4"
[dependencies.http-body-util]
version = "0.1"
[dependencies.hyper]
version = "1"
features = [
"server",
"http1",
]
[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
[dependencies.indicatif]
version = "0.18"
[dependencies.iroh]
version = "1.3"
[dependencies.jsonrpsee]
version = "0.26"
features = [
"http-client",
"macros",
]
[dependencies.mime_guess]
version = "2"
[dependencies.psl]
version = "2"
[dependencies.rand]
version = "0.10"
[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.tempfile]
version = "3"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-util]
version = "0.7"
features = [
"io",
"rt",
]
[dependencies.toml]
version = "1"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
"registry",
]
[dependencies.url]
version = "2"
[dependencies.walkdir]
version = "2"
[dependencies.zeroize]
version = "1"
[dev-dependencies.alloy-json-rpc]
version = "2"
[dev-dependencies.decdn-cache]
version = "0.1.0"
[dev-dependencies.decdn-client]
version = "0.1.0"
features = ["test-util"]
[dev-dependencies.decdn-incentive]
version = "0.1.0"
features = [
"redb",
"test-util",
]
[dev-dependencies.decdn-node]
version = "0.1.0"
[dev-dependencies.jsonrpsee]
version = "0.26"
features = [
"http-client",
"macros",
"server",
]
[target."cfg(unix)".dev-dependencies.rexpect]
version = "0.7"
[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"