decdn-client 0.1.0

The deCDN client SDK: fetch content-addressed blobs from deCDN nodes, pay per megabyte from a USDC payment pool, and verify every byte as it arrives
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.99.0"
name = "decdn-client"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The deCDN client SDK: fetch content-addressed blobs from deCDN nodes, pay per megabyte from a USDC payment pool, and verify every byte as it arrives"
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]
public-api-test = []
test-util = []

[lib]
name = "decdn_client"
path = "src/lib.rs"

[[example]]
name = "bundle"
path = "examples/bundle.rs"

[[example]]
name = "download"
path = "examples/download.rs"

[[example]]
name = "stream"
path = "examples/stream.rs"

[[test]]
name = "public_api"
path = "tests/public_api.rs"
required-features = ["public-api-test"]

[[test]]
name = "ranged_store_client"
path = "tests/ranged_store_client.rs"

[[test]]
name = "ranged_store_conformance"
path = "tests/ranged_store_conformance.rs"

[dependencies.alloy]
version = "2"
features = [
    "std",
    "reqwest",
    "essentials",
    "providers",
    "signers",
    "signer-keystore",
    "contract",
]
default-features = false

[dependencies.anyhow]
version = "1"

[dependencies.bao-tree]
version = "0.16"
features = ["tokio_fsm"]

[dependencies.blake3]
version = "1"

[dependencies.bytes]
version = "1"

[dependencies.decdn-bao-range]
version = "0.1.0"

[dependencies.decdn-common]
version = "0.1.0"

[dependencies.decdn-incentive]
version = "0.1.0"

[dependencies.decdn-protocol]
version = "0.1.0"

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.iroh]
version = "1.3"

[dependencies.iroh-io]
version = "0.6"
default-features = false

[dependencies.rand]
version = "0.10"

[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.tracing]
version = "0.1"

[dev-dependencies.alloy-json-rpc]
version = "2"

[dev-dependencies.decdn-bao-range]
version = "0.1.0"
features = ["test-util"]

[dev-dependencies.decdn-incentive]
version = "0.1.0"
features = ["redb"]

[dev-dependencies.insta]
version = "1"

[dev-dependencies.public-api]
version = "0.52"

[dev-dependencies.rustdoc-json]
version = "0.9"

[dev-dependencies.tower]
version = "0.5"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
    "registry",
]

[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"