2019-03-06 03:47:18 +01:00
|
|
|
[package]
|
|
|
|
name = "actix-session"
|
2022-09-11 22:13:20 +02:00
|
|
|
version = "0.7.2"
|
2022-03-06 00:22:14 +01:00
|
|
|
authors = [
|
|
|
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
|
|
|
"Luca Palmieri <rust@lpalmieri.com>",
|
|
|
|
]
|
2022-07-21 04:07:06 +02:00
|
|
|
description = "Session management for Actix We"
|
2020-09-11 22:22:55 +02:00
|
|
|
keywords = ["http", "web", "framework", "async", "session"]
|
2019-03-06 03:47:18 +01:00
|
|
|
homepage = "https://actix.rs"
|
2021-12-08 08:29:12 +01:00
|
|
|
repository = "https://github.com/actix/actix-extras.git"
|
2020-07-14 12:16:32 +02:00
|
|
|
license = "MIT OR Apache-2.0"
|
2023-03-23 12:40:54 +01:00
|
|
|
edition = "2018"
|
|
|
|
rust-version = "1.60"
|
2019-03-06 03:47:18 +01:00
|
|
|
|
2022-03-06 00:22:14 +01:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
2019-03-06 03:47:18 +01:00
|
|
|
[lib]
|
|
|
|
name = "actix_session"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
[features]
|
2022-03-06 00:22:14 +01:00
|
|
|
default = []
|
|
|
|
cookie-session = []
|
|
|
|
redis-actor-session = ["actix-redis", "actix", "futures-core", "rand"]
|
|
|
|
redis-rs-session = ["redis", "rand"]
|
|
|
|
redis-rs-tls-session = ["redis-rs-session", "redis/tokio-native-tls-comp"]
|
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"
|
|
|
|
async-trait = "0.1"
|
2023-01-07 02:08:01 +01:00
|
|
|
derive_more = "0.99.7"
|
2022-03-06 00:22:14 +01:00
|
|
|
rand = { version = "0.8", optional = true }
|
|
|
|
serde = { version = "1" }
|
|
|
|
serde_json = { version = "1" }
|
|
|
|
tracing = { version = "0.1.30", default-features = false, features = ["log"] }
|
|
|
|
|
|
|
|
# redis-actor-session
|
2022-07-09 21:14:27 +02:00
|
|
|
actix = { version = "0.13", default-features = false, optional = true }
|
|
|
|
actix-redis = { version = "0.12", optional = true }
|
2022-03-06 00:22:14 +01:00
|
|
|
futures-core = { version = "0.3.7", default-features = false, optional = true }
|
|
|
|
|
|
|
|
# redis-rs-session
|
2023-01-07 02:15:26 +01:00
|
|
|
redis = { version = "0.22", default-features = false, features = ["tokio-comp", "connection-manager"], optional = true }
|
2019-03-06 03:47:18 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-03-06 00:22:14 +01:00
|
|
|
actix-session = { path = ".", features = ["cookie-session", "redis-actor-session", "redis-rs-session"] }
|
|
|
|
actix-test = "0.1.0-beta.10"
|
2023-03-22 21:51:14 +01:00
|
|
|
actix-web = { version = "4", default-features = false, features = ["cookies", "secure-cookies", "macros"] }
|
2023-01-07 02:08:01 +01:00
|
|
|
env_logger = "0.10"
|
2022-03-06 00:22:14 +01:00
|
|
|
log = "0.4"
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "basic"
|
|
|
|
required-features = ["redis-actor-session"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "authentication"
|
|
|
|
required-features = ["redis-actor-session"]
|