[package] name = "statsdproxy" authors = ["Sentry "] description = "A proxy for transforming, pre-aggregating and routing statsd metrics" repository = "https://github.com/getsentry/statsdproxy" version = "0.2.0" edition = "2021" license = "Apache-2.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] anyhow = "1.0.0" clap = { version = "4.3.23", features = ["derive"], optional = true } crc32fast = "1.3.2" env_logger = { version = "0.11.5", optional = true } serde = { version = "1.0", features = ["derive"], optional = true } serde_yaml = { version = "0.9", optional = true } cadence = { version = "1.0.0", optional = true } log = "0.4" signal-hook = { version = "0.3.17", optional = true } thread_local = { version = "1.1.7", optional = true } rand = { version = "0.8.5", features = ["small_rng"] } [features] default = ["cli"] # opt out of cli feature to get rid of CLI dependencies cli = [ "dep:clap", "dep:serde", "dep:serde_yaml", "dep:signal-hook", "dep:env_logger", ] # opt into cadence feature to enable cadence adapter cadence = ["dep:cadence", "dep:thread_local"] [dev-dependencies] insta = { version = "1.31.0", features = ["yaml"] }