# 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 = "2021"
rust-version = "1.85"
name = "sentinel-common"
version = "0.4.1"
authors = ["Sentinel Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common utilities and types for Sentinel reverse proxy"
homepage = "https://github.com/raskell-io/sentinel"
readme = "README.md"
keywords = [
    "proxy",
    "reverse-proxy",
    "utilities",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/raskell-io/sentinel"

[features]
default = ["runtime"]
runtime = [
    "tokio",
    "tracing-subscriber",
    "prometheus",
    "sysinfo",
    "uuid",
]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.http]
version = "1.2"

[dependencies.parking_lot]
version = "0.12"

[dependencies.prometheus]
version = "0.14"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sysinfo]
version = "0.31"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.49"
features = [
    "rt-multi-thread",
    "net",
    "io-util",
    "time",
    "sync",
    "signal",
    "fs",
    "macros",
    "sync",
]
optional = true

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1.11"
features = [
    "v4",
    "serde",
]
optional = true

[dev-dependencies.criterion]
version = "0.6"

[dev-dependencies.insta]
version = "1.46"

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