cachey 0.10.2

Read-through cache for object storage
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"
name = "cachey"
version = "0.10.2"
authors = ["s2 team <hi@s2.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Read-through cache for object storage"
readme = "README.md"
license = "MIT"
repository = "https://github.com/s2-streamstore/cachey"

[features]
jemalloc = [
    "dep:tikv-jemallocator",
    "dep:jemalloc_pprof",
    "dep:tikv-jemalloc-ctl",
]

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

[[bin]]
name = "server"
path = "src/bin/server.rs"

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

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

[dependencies.async-stream]
version = "0.3"

[dependencies.aws-config]
version = "1.8"

[dependencies.aws-sdk-s3]
version = "1"
features = [
    "behavior-version-latest",
    "sigv4a",
    "rt-tokio",
    "default-https-client",
]
default-features = false

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

[dependencies.axum]
version = "0.8"
features = ["macros"]

[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls"]

[dependencies.bytes]
version = "1.11"

[dependencies.bytesize]
version = "2.3"

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.compact_str]
version = "0.9"
features = ["serde"]

[dependencies.crossbeam]
version = "0.8"

[dependencies.dashmap]
version = "6.1"

[dependencies.exponential-decay-histogram]
version = "0.1"

[dependencies.eyre]
version = "0.6"

[dependencies.foyer]
version = "0.22"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1.4"

[dependencies.http-body]
version = "1.0"

[dependencies.http-body-util]
version = "0.1"

[dependencies.http-content-range]
version = "0.2"

[dependencies.http-range-header]
version = "0.4.2"

[dependencies.httpdate]
version = "1.0"

[dependencies.itertools]
version = "0.14"

[dependencies.jemalloc_pprof]
version = "0.8"
features = ["flamegraph"]
optional = true

[dependencies.mixtrics]
version = "0.2"
features = ["prometheus_0_14"]

[dependencies.parking_lot]
version = "0.12"

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.prometheus]
version = "0.14"
features = ["process"]

[dependencies.rcgen]
version = "0.14"

[dependencies.serde]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tikv-jemalloc-ctl]
version = "0.6"
features = ["stats"]
optional = true

[dependencies.tikv-jemallocator]
version = "0.6"
features = [
    "profiling",
    "unprefixed_malloc_on_supported_platforms",
]
optional = true

[dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"

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

[dev-dependencies.hyper-util]
version = "0.1"
features = [
    "client",
    "client-legacy",
    "http2",
    "tokio",
]

[dev-dependencies.proptest]
version = "1.9"

[dev-dependencies.reqwest]
version = "0.13"
features = ["json"]

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

[dev-dependencies.testcontainers]
version = "0.26"

[dev-dependencies.testcontainers-modules]
version = "0.14"
features = ["minio"]

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
missing_errors_doc = "allow"
similar_names = "allow"
unnecessary_wraps = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "warn"

[profile.release]
debug = 1
strip = false