[package]
edition = "2024"
rust-version = "1.99.0"
name = "decdn-incentive"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The deCDN payment layer: USDC payment pools, off-chain EIP-712 vouchers, and the contract bindings that settle them"
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"
[package.metadata.docs.rs]
features = ["redb"]
[features]
buyer-store-core = ["dep:redb"]
redb = ["buyer-store-core"]
test-util = []
[lib]
name = "decdn_incentive"
path = "src/lib.rs"
[[test]]
name = "ed25519_pin_parity"
path = "tests/ed25519_pin_parity.rs"
[dependencies.alloy]
version = "2"
features = [
"std",
"reqwest",
"essentials",
"providers",
"signers",
"signer-keystore",
"contract",
]
default-features = false
[dependencies.anyhow]
version = "1"
[dependencies.base64]
version = "0.23"
[dependencies.decdn-common]
version = "0.1.0"
[dependencies.decdn-protocol]
version = "0.1.0"
[dependencies.ed25519-dalek]
version = "3"
features = ["serde"]
[dependencies.iroh]
version = "1.3"
[dependencies.postcard]
version = "1"
features = ["alloc"]
[dependencies.rand]
version = "0.10"
[dependencies.redb]
version = "4.2"
optional = true
[dependencies.rpassword]
version = "7"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dependencies.zeroize]
version = "1"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.toml]
version = "1"
[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"