mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 15:51:06 +01:00
48646d1bd3
* build(deps): update derive_more to v1.0 * chore: remove overspecified deps * chore: use from the derive module * chore: restore unrelated version reqs --------- Co-authored-by: Rob Ede <robjtede@icloud.com>
61 lines
1.8 KiB
TOML
61 lines
1.8 KiB
TOML
[package]
|
|
name = "actix-session"
|
|
version = "0.10.0"
|
|
authors = [
|
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
|
"Luca Palmieri <rust@lpalmieri.com>",
|
|
]
|
|
description = "Session management for Actix Web"
|
|
keywords = ["http", "web", "framework", "async", "session"]
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
license.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
all-features = true
|
|
|
|
[features]
|
|
default = []
|
|
cookie-session = []
|
|
redis-session = ["dep:redis", "dep:rand"]
|
|
redis-session-native-tls = ["redis-session", "redis/tokio-native-tls-comp"]
|
|
redis-session-rustls = ["redis-session", "redis/tokio-rustls-comp"]
|
|
redis-pool = ["dep:deadpool-redis"]
|
|
|
|
[dependencies]
|
|
actix-service = "2"
|
|
actix-utils = "3"
|
|
actix-web = { version = "4", default-features = false, features = ["cookies", "secure-cookies"] }
|
|
|
|
anyhow = "1"
|
|
derive_more = { version = "1", features = ["display", "error", "from"] }
|
|
rand = { version = "0.8", optional = true }
|
|
serde = { version = "1" }
|
|
serde_json = { version = "1" }
|
|
tracing = { version = "0.1.30", default-features = false, features = ["log"] }
|
|
|
|
# redis-session
|
|
redis = { version = "0.26", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true }
|
|
deadpool-redis = { version = "0.16", optional = true }
|
|
|
|
[dev-dependencies]
|
|
actix-session = { path = ".", features = ["cookie-session", "redis-session"] }
|
|
actix-test = "0.1"
|
|
actix-web = { version = "4", default-features = false, features = ["cookies", "secure-cookies", "macros"] }
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tracing = "0.1.30"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[[example]]
|
|
name = "basic"
|
|
required-features = ["redis-session"]
|
|
|
|
[[example]]
|
|
name = "authentication"
|
|
required-features = ["redis-session"]
|