1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 09:12:57 +01:00

chore: fix rand optionality

This commit is contained in:
Rob Ede 2024-09-12 14:56:33 -04:00
parent 26ccf8b200
commit 3c640ec120
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -20,7 +20,7 @@ all-features = true
[features] [features]
default = [] default = []
cookie-session = [] cookie-session = []
redis-session = ["dep:redis", "dep:rand"] redis-session = ["dep:redis"]
redis-session-native-tls = ["redis-session", "redis/tokio-native-tls-comp"] redis-session-native-tls = ["redis-session", "redis/tokio-native-tls-comp"]
redis-session-rustls = ["redis-session", "redis/tokio-rustls-comp"] redis-session-rustls = ["redis-session", "redis/tokio-rustls-comp"]
redis-pool = ["dep:deadpool-redis"] redis-pool = ["dep:deadpool-redis"]
@ -32,7 +32,7 @@ actix-web = { version = "4", default-features = false, features = ["cookies", "s
anyhow = "1" anyhow = "1"
derive_more = { version = "1", features = ["display", "error", "from"] } derive_more = { version = "1", features = ["display", "error", "from"] }
rand = { version = "0.8", optional = true } rand = "0.8"
serde = { version = "1" } serde = { version = "1" }
serde_json = { version = "1" } serde_json = { version = "1" }
tracing = { version = "0.1.30", default-features = false, features = ["log"] } tracing = { version = "0.1.30", default-features = false, features = ["log"] }