# 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.89.0"
name = "sui-cache"
version = "0.1.43"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Built-in binary cache server and push pipeline for the sui Rust-native Nix runtime"
readme = false
keywords = [
    "nix",
    "binary-cache",
    "cache",
    "store",
]
categories = [
    "caching",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/pleme-io/sui"

[features]
default = []
postgres = ["dep:sqlx"]
redis-client = ["dep:redis"]

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

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

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

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

[dependencies.async-trait]
version = "0.1"

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

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.ed25519-dalek]
version = "2"
features = [
    "std",
    "rand_core",
    "rand_core",
]

[dependencies.futures]
version = "0.3"

[dependencies.object_store]
version = "0.12"
features = ["aws"]

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dependencies.redb]
version = "2"

[dependencies.redis]
version = "0.27"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "postgres",
]
optional = true
default-features = false

[dependencies.sui-compat]
version = "0.1.10"

[dependencies.thiserror]
version = "2"

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

[dependencies.tracing]
version = "0.1"

[dependencies.xz2]
version = "0.1"

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

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "json",
    "stream",
]

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

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

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

[lints.clippy]
pedantic = "warn"
