move dependencies to `secrets` feature

This commit is contained in:
Vadim Anufriev 2024-07-07 13:13:25 +04:00
parent 5296e3ff66
commit bba0d6c219
1 changed files with 8 additions and 6 deletions

View File

@ -26,7 +26,7 @@ workspace = true
default = ["http2", "tokio-macros", "trace"] default = ["http2", "tokio-macros", "trace"]
http2 = ["hyper/http2", "hyper-util/http2"] http2 = ["hyper/http2", "hyper-util/http2"]
http3-preview = ["s2n-quic", "s2n-quic-h3", "tls"] http3-preview = ["s2n-quic", "s2n-quic-h3", "tls"]
secrets = ["cookie/private", "cookie/key-expansion"] secrets = ["cookie/private", "cookie/key-expansion", "chacha20poly1305", "hkdf", "sha2", "base64", "hex"]
json = ["serde_json"] json = ["serde_json"]
msgpack = ["rmp-serde"] msgpack = ["rmp-serde"]
uuid = ["uuid_", "rocket_http/uuid"] uuid = ["uuid_", "rocket_http/uuid"]
@ -44,6 +44,13 @@ uuid_ = { package = "uuid", version = "1", optional = true, features = ["serde"]
# Optional MTLS dependencies # Optional MTLS dependencies
x509-parser = { version = "0.16", optional = true } x509-parser = { version = "0.16", optional = true }
# Optional dependencies for "secrets" feature
chacha20poly1305 = { version = "0.10.1", optional = true }
hkdf = { version = "0.12.4", optional = true }
sha2 = { version = "0.10.8", optional = true }
base64 = { version = "0.22.1", optional = true }
hex = { version = "0.4.3", optional = true }
# Hyper dependencies # Hyper dependencies
http = "1" http = "1"
bytes = "1.4" bytes = "1.4"
@ -74,11 +81,6 @@ tokio-stream = { version = "0.1.6", features = ["signal", "time"] }
cookie = { version = "0.18", features = ["percent-encode"] } cookie = { version = "0.18", features = ["percent-encode"] }
futures = { version = "0.3.30", default-features = false, features = ["std"] } futures = { version = "0.3.30", default-features = false, features = ["std"] }
state = "0.6" state = "0.6"
chacha20poly1305 = "0.10.1"
hkdf = "0.12.4"
sha2 = "0.10.8"
base64 = "0.22.1"
hex = "0.4.3"
# tracing # tracing
tracing = { version = "0.1.40", default-features = false, features = ["std", "attributes"] } tracing = { version = "0.1.40", default-features = false, features = ["std", "attributes"] }