# 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.92"
name = "s4-server"
version = "0.5.0"
authors = [
    "abyo software 合同会社",
    "masumi-ryugo <abyo.software@gmail.com>",
]
build = false
include = [
    "src/**/*.rs",
    "Cargo.toml",
    "LICENSE",
    "NOTICE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "S4 — Squished S3 — GPU-accelerated transparent compression S3-compatible storage gateway (cargo install s4-server installs the `s4` binary)."
homepage = "https://github.com/abyo-software/s4"
documentation = "https://github.com/abyo-software/s4#readme"
readme = "README.md"
keywords = [
    "s3",
    "compression",
    "gpu",
    "nvcomp",
    "zstd",
]
categories = [
    "compression",
    "network-programming",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/abyo-software/s4"
resolver = "2"

[features]
aws-kms = ["dep:aws-sdk-kms"]
default = []
nvcomp-gpu = ["s4-codec/nvcomp-gpu"]

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

[[bin]]
name = "s4"
path = "src/main.rs"

[dependencies.aes-gcm]
version = "0.10"

[dependencies.anyhow]
version = "1"

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

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

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

[dependencies.aws-config]
version = "1"
features = ["behavior-version-latest"]

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

[dependencies.aws-sdk-kms]
version = "1"
optional = true

[dependencies.aws-sdk-s3]
version = "1.124"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
]
default-features = false

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

[dependencies.crc32c]
version = "0.6"

[dependencies.dashmap]
version = "6"

[dependencies.ecdsa]
version = "0.16"

[dependencies.futures]
version = "0.3"

[dependencies.governor]
version = "0.10"

[dependencies.hmac]
version = "0.12"

[dependencies.http]
version = "1"

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

[dependencies.hyper]
version = "1.8"

[dependencies.hyper-util]
version = "0.1"
features = [
    "server-auto",
    "server-graceful",
    "http1",
    "http2",
    "tokio",
]

[dependencies.md-5]
version = "0.10"

[dependencies.metrics]
version = "0.24"

[dependencies.metrics-exporter-prometheus]
version = "0.17"
default-features = false

[dependencies.opentelemetry]
version = "0.31"

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "trace",
    "grpc-tonic",
]
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]

[dependencies.p256]
version = "0.13"
features = [
    "ecdsa",
    "std",
    "pem",
    "pkcs8",
]

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

[dependencies.rand]
version = "0.8"

[dependencies.rustls-acme]
version = "0.15"
features = [
    "ring",
    "webpki-roots",
]
default-features = false

[dependencies.rustls-pemfile]
version = "2"

[dependencies.s3s]
version = "0.13"

[dependencies.s3s-aws]
version = "0.13"

[dependencies.s4-codec]
version = "0.5.0"

[dependencies.s4-config]
version = "0.5.0"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-rustls]
version = "0.26"
features = [
    "ring",
    "tls12",
]
default-features = false

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.32"

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

[dependencies.uuid]
version = "1"
features = ["v4"]

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

[dev-dependencies.metrics-exporter-prometheus]
version = "0.17"
default-features = false

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

[dev-dependencies.rcgen]
version = "0.13"

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "http2",
]
default-features = false

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

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

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

[lints.rust]
unsafe_code = "deny"
