[package] name = "cs-utils" description = "Common utilities." authors = [ "Oleg Solomka " ] homepage = "https://github.com/legomushroom/utils-rs" repository = "https://github.com/legomushroom/utils-rs" version = "0.21.1" license = "MIT" edition = "2018" [features] async = ["tokio", "tokio-util", "futures", "serde", "serde_json", "bytes", "thiserror"] test = [] traits = ["test"] constants = [] experimental = [] all = ["async", "test", "traits", "constants", "experimental"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] rand = "0.8" anyhow = "1" # < for async utils tokio = { version = "1", features = ["full"], optional = true } tokio-util = { version = "0.6", features = ["codec"], optional = true } futures = { version = "0.3.17", optional = true } serde = { version = "1", features = ["derive"], optional = true } serde_json = { version = "1", optional = true } bytes = { version = "1", optional = true } thiserror = { version = "1", optional = true } # > for async utils [dev-dependencies] rstest = "0.12.0" paste = "1.0.6" # Hack so we don't have to enabled features for `cargo test` # See: https://github.com/rust-lang/cargo/issues/2911 cs-utils = { path = ".", features = ["all"] } k9 = "0.11" thiserror = { version = "1" } [package.metadata.docs.rs] features = ["all"]