decdn-cache 0.0.1

Cache engine wrapping iroh-blobs with origin pull-through for deCDN
Documentation
# 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-cache"
version = "0.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cache engine wrapping iroh-blobs with origin pull-through for deCDN"
homepage = "https://decdn.org"
readme = "README.md"
keywords = [
    "cdn",
    "p2p",
    "content-delivery",
    "iroh",
    "blake3",
]
categories = [
    "network-programming",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/decdn/decdn"

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.arc-swap]
version = "1"

[dependencies.async-compression]
version = "0.4"
features = [
    "tokio",
    "gzip",
    "zstd",
]

[dependencies.aws-config]
version = "1.8"
features = [
    "behavior-version-latest",
    "credentials-process",
    "sso",
    "rt-tokio",
]
default-features = false

[dependencies.aws-credential-types]
version = "1"

[dependencies.aws-sdk-s3]
version = "1"
features = [
    "http-1x",
    "rt-tokio",
]
default-features = false

[dependencies.aws-smithy-http-client]
version = "1.1"
features = [
    "default-client",
    "rustls-aws-lc",
]
default-features = false

[dependencies.aws-smithy-runtime-api]
version = "1"

[dependencies.aws-smithy-types]
version = "1"

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

[dependencies.bytes]
version = "1"

[dependencies.chacha20poly1305]
version = "0.11"

[dependencies.dashmap]
version = "6"

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

[dependencies.decdn-config-types]
version = "0.0.1"

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

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

[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.positioned-io]
version = "0.3"

[dependencies.rand]
version = "0.10"

[dependencies.reqwest]
version = "0.13"
features = [
    "rustls",
    "stream",
    "json",
]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-util]
version = "0.7"
features = [
    "io",
    "rt",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.aws-sdk-s3]
version = "1"
features = [
    "http-1x",
    "rt-tokio",
    "test-util",
]
default-features = false

[dev-dependencies.aws-smithy-mocks]
version = "0.3"

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

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

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

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.wiremock]
version = "0.6"

[dev-dependencies.zstd]
version = "0.14"

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