# 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-common"
version = "0.26.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common stuff for client and servers for S2, the durable streams API"
homepage = "https://s2.dev"
readme = false
keywords = [
    "s2",
    "durable",
    "streams",
    "log",
    "api",
]
license = "MIT"
repository = "https://github.com/s2-streamstore/s2"
resolver = "2"

[features]
axum = ["dep:axum"]
clap = ["dep:clap"]
rkyv = [
    "dep:rkyv",
    "compact_str/rkyv",
]
utoipa = ["dep:utoipa"]

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.blake3]
version = "1.8"

[dependencies.bytes]
version = "1.11"

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

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

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

[dependencies.enumset]
version = "1.1"

[dependencies.http]
version = "1.4"

[dependencies.rkyv]
version = "0.8"
optional = true

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

[dependencies.strum]
version = "0.27"
features = ["derive"]

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "0.3"

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

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

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

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