2019-03-06 03:47:18 +01:00
|
|
|
[package]
|
|
|
|
name = "actix-session"
|
2024-09-12 20:50:48 +02:00
|
|
|
version = "0.10.1"
|
2022-03-06 00:22:14 +01:00
|
|
|
authors = [
|
|
|
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
|
|
|
"Luca Palmieri <rust@lpalmieri.com>",
|
|
|
|
]
|
2023-10-29 23:37:57 +01:00
|
|
|
description = "Session management for Actix Web"
|
2020-09-11 22:22:55 +02:00
|
|
|
keywords = ["http", "web", "framework", "async", "session"]
|
2024-06-20 03:18:37 +02:00
|
|
|
repository.workspace = true
|
2024-01-04 05:10:46 +01:00
|
|
|
homepage.workspace = true
|
2023-09-16 01:30:38 +02:00
|
|
|
license.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
rust-version.workspace = true
|
2019-03-06 03:47:18 +01:00
|
|
|
|
2022-03-06 00:22:14 +01:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2023-04-11 13:22:28 +02:00
|
|
|
all-features = true
|
2019-03-06 03:47:18 +01:00
|
|
|
|
|
|
|
[features]
|
2022-03-06 00:22:14 +01:00
|
|
|
default = []
|
|
|
|
cookie-session = []
|
2024-09-12 20:56:33 +02:00
|
|
|
redis-session = ["dep:redis"]
|
2024-06-10 00:29:13 +02:00
|
|
|
redis-session-native-tls = ["redis-session", "redis/tokio-native-tls-comp"]
|
|
|
|
redis-session-rustls = ["redis-session", "redis/tokio-rustls-comp"]
|
2024-08-06 15:47:49 +02:00
|
|
|
redis-pool = ["dep:deadpool-redis"]
|
2019-03-06 03:47:18 +01:00
|
|
|
|
|
|
|
[dependencies]
|
2021-12-18 04:37:23 +01:00
|
|
|
actix-service = "2"
|
2021-12-08 08:29:12 +01:00
|
|
|
actix-utils = "3"
|
2023-03-22 21:51:14 +01:00
|
|
|
actix-web = { version = "4", default-features = false, features = ["cookies", "secure-cookies"] }
|
2021-03-23 23:35:27 +01:00
|
|
|
|
2022-03-06 00:22:14 +01:00
|
|
|
anyhow = "1"
|
2024-08-18 16:21:56 +02:00
|
|
|
derive_more = { version = "1", features = ["display", "error", "from"] }
|
2024-09-12 20:56:33 +02:00
|
|
|
rand = "0.8"
|
2022-03-06 00:22:14 +01:00
|
|
|
serde = { version = "1" }
|
|
|
|
serde_json = { version = "1" }
|
|
|
|
tracing = { version = "0.1.30", default-features = false, features = ["log"] }
|
|
|
|
|
2024-06-10 00:29:13 +02:00
|
|
|
# redis-session
|
2024-10-11 15:10:39 +02:00
|
|
|
redis = { version = "0.27", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true }
|
|
|
|
deadpool-redis = { version = "0.18", optional = true }
|
2019-03-06 03:47:18 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-06-10 00:29:13 +02:00
|
|
|
actix-session = { path = ".", features = ["cookie-session", "redis-session"] }
|
2024-08-18 16:21:56 +02:00
|
|
|
actix-test = "0.1"
|
2023-03-22 21:51:14 +01:00
|
|
|
actix-web = { version = "4", default-features = false, features = ["cookies", "secure-cookies", "macros"] }
|
2024-06-11 04:52:45 +02:00
|
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
2024-06-09 21:34:06 +02:00
|
|
|
tracing = "0.1.30"
|
2022-03-06 00:22:14 +01:00
|
|
|
|
2024-06-20 03:14:35 +02:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2022-03-06 00:22:14 +01:00
|
|
|
[[example]]
|
|
|
|
name = "basic"
|
2024-06-10 00:29:13 +02:00
|
|
|
required-features = ["redis-session"]
|
2022-03-06 00:22:14 +01:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "authentication"
|
2024-06-10 00:29:13 +02:00
|
|
|
required-features = ["redis-session"]
|