# 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.74" name = "rst-common" version = "1.5.1" authors = ["rstlix0x0 "] description = "A shortcut to common Rust crates" homepage = "https://docs.rs/rst-common" documentation = "https://docs.rs/rst-common" readme = "README.md" keywords = [ "crates", "common", "libraries", ] categories = [ "development-tools", "rust-patterns", ] license = "Apache-2.0" repository = "https://github.com/rstlix0x0/rst-common" [package.metadata.docs.rs] all-features = true [[example]] name = "standard" path = "examples/standard/main.rs" required-features = ["default"] [[example]] name = "with-tokio" path = "examples/with-tokio/main.rs" required-features = ["with-tokio"] [[example]] name = "with-errors" path = "examples/with-errors/main.rs" required-features = ["with-errors"] [dependencies.anyhow] version = "~1" optional = true [dependencies.argon2] version = "~0.5" optional = true [dependencies.async-trait] version = "~0.1" [dependencies.axum] version = "~0.7" optional = true [dependencies.blake3] version = "~1" optional = true [dependencies.bytes] version = "~1" features = ["serde"] [dependencies.chacha20poly1305] version = "~0.10" optional = true [dependencies.chrono] version = "~0.4" features = ["serde"] [dependencies.dyn-clone] version = "~1" [dependencies.ed25519-dalek] version = "~2" features = [ "pkcs8", "pem", "rand_core", ] optional = true [dependencies.env_logger] version = "~0.11" optional = true [dependencies.erased-serde] version = "~0.4" [dependencies.futures] version = "~0.3" [dependencies.hex] version = "~0.4" optional = true [dependencies.hyper] version = "~1" optional = true [dependencies.hyper-util] version = "~0.1" features = [ "tokio", "server-auto", "http1", ] optional = true [dependencies.log] version = "~0.4" optional = true [dependencies.rand] version = "~0.8" optional = true [dependencies.rand_chacha] version = "~0.3" optional = true [dependencies.reqwest] version = "~0.12.5" features = ["json"] [dependencies.ring] version = "~0.17" optional = true [dependencies.serde] version = "~1" features = ["derive"] [dependencies.serde_json] version = "~1" [dependencies.sha2] version = "~0.10" optional = true [dependencies.table-test] version = "~0.2" optional = true [dependencies.thiserror] version = "~1" optional = true [dependencies.tokio] version = "~1" features = ["full"] optional = true [dependencies.tower] version = "~0.4" optional = true [dependencies.tower-http] version = "~0.5" features = [ "trace", "timeout", ] optional = true [dependencies.tracing] version = "~0.1" optional = true [dependencies.tracing-subscriber] version = "~0.3" features = ["env-filter"] optional = true [dependencies.uuid] version = "~1" features = [ "v4", "fast-rng", "macro-diagnostics", "serde", ] [dependencies.x25519-dalek] version = "~2" features = ["static_secrets"] optional = true [features] default = ["standard"] full = [ "standard", "with-tokio", "with-tracing", "with-logging", "with-errors", "with-tests", "with-http-tokio", "with-cryptography", ] standard = [] with-cryptography = [ "dep:rand", "dep:rand_chacha", "dep:hex", "dep:chacha20poly1305", "dep:blake3", "dep:argon2", "dep:ring", "dep:ed25519-dalek", "dep:x25519-dalek", "dep:sha2", ] with-errors = [ "dep:thiserror", "dep:anyhow", ] with-http-tokio = [ "dep:tokio", "dep:axum", "dep:tower", "dep:hyper", "dep:hyper-util", "dep:tower-http", ] with-logging = [ "dep:log", "dep:env_logger", ] with-tests = ["dep:table-test"] with-tokio = ["dep:tokio"] with-tracing = [ "dep:tracing", "dep:tracing-subscriber", ]