# 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 = "s2-lite"
version = "0.29.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight server implementation of S2, the durable streams API, backed by object storage"
homepage = "https://s2.dev"
readme = false
keywords = [
    "s2",
    "durable",
    "streams",
    "object",
    "storage",
]
categories = ["database-implementations"]
license = "MIT"
repository = "https://github.com/s2-streamstore/s2"
resolver = "2"

[features]
utoipa = [
    "dep:utoipa",
    "s2-api/utoipa",
    "s2-common/utoipa",
]

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

[[bin]]
name = "openapi"
path = "src/bin/openapi.rs"
required-features = ["utoipa"]

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

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

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

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

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

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

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

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

[dependencies.blake3]
version = "1.8"

[dependencies.bytes]
version = "1.11"

[dependencies.bytesize]
version = "2.3"

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

[dependencies.compact_str]
version = "0.9"

[dependencies.dashmap]
version = "6.1"

[dependencies.enum-ordinalize]
version = "4.3"

[dependencies.eyre]
version = "0.6"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1.4"

[dependencies.indexmap]
version = "2.13"

[dependencies.itertools]
version = "0.14"

[dependencies.mimalloc]
version = "0.1"

[dependencies.parking_lot]
version = "0.12"
features = ["arc_lock"]

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

[dependencies.prost]
version = "0.14"

[dependencies.rand]
version = "0.10"

[dependencies.rcgen]
version = "0.14"
features = [
    "crypto",
    "pem",
    "aws_lc_rs",
]
default-features = false

[dependencies.rustls]
version = "0.23"
features = ["aws-lc-rs"]

[dependencies.s2-api]
version = "0.27"
features = ["axum"]

[dependencies.s2-common]
version = "0.28"
features = ["clap"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.slatedb]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "0.3"
features = [
    "serde",
    "formatting",
    "parsing",
]

[dependencies.tokio]
version = "1.49"
features = ["sync"]

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

[dependencies.tower-http]
version = "0.6"
features = [
    "trace",
    "compression-zstd",
    "compression-gzip",
    "decompression-zstd",
    "decompression-gzip",
]

[dependencies.tracing]
version = "0.1"

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

[dependencies.utoipa]
version = "5.4"
features = ["time"]
optional = true

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

[dev-dependencies.uuid]
version = "1.21"
features = ["v4"]
