-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathCargo.toml
125 lines (109 loc) · 2.85 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[workspace]
resolver = "2"
members = [
".",
"databases/sqlx",
"databases/mongo",
"databases/redispool",
"databases/surreal",
"databases/redis-bb8-pool",
]
[package]
name = "axum_session"
version = "0.15.0"
authors = ["Andrew Wheeler <[email protected]>"]
description = "📝 Session management layer for axum that supports HTTP and Rest."
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
documentation = "https://docs.rs/axum_session"
keywords = ["Axum", "Tower", "Session", "Store"]
repository = "https://github.com/AscendingCreations/AxumSession"
[features]
key-store = ["fastbloom-rs"]
rest_mode = []
advanced = []
[dependencies]
axum = { version = "0.8.1" }
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.134"
chrono = { version = "0.4.39", default-features = false, features = [
"clock",
"serde",
] }
tokio = { version = "1.42.0", features = ["full"] }
async-trait = "0.1.83"
tracing = "0.1.41"
thiserror = "2.0.9"
http-body = "1.0.1"
uuid = { version = "1.11.0", features = ["serde", "v4"] }
http = "1.2.0"
tower-layer = "0.3.3"
tower-service = "0.3.3"
cookie = { version = "0.18.1", features = ["percent-encode", "private"] }
futures = "0.3.31"
bytes = "1.9.0"
dashmap = "6.1.0"
aes-gcm = "0.10.3"
base64 = "0.22.1"
rand = "0.8.5"
hmac = "0.12.1"
sha2 = "0.10.8"
forwarded-header-value = "0.1.1"
fastbloom-rs = { version = "0.5.9", optional = true }
[workspace.dependencies]
axum_session = { version = "0.15.0", path = "./" }
chrono = { version = "0.4.38", default-features = false, features = [
"clock",
"serde",
] }
async-trait = "0.1.81"
tokio = { version = "1.39.3", features = ["full", "tracing"] }
serde = { version = "1.0.208", features = ["derive"] }
serde_json = "1.0.125"
axum = "0.8.1"
[package.metadata.docs.rs]
features = ["key-store", "advanced"]
rustdoc-args = ["--document-private-items", "--cfg", "docsrs"]
[dev-dependencies]
sqlx = { version = "0.8.2", features = [
"macros",
"sqlite",
"postgres",
"_unstable-all-types",
"tls-rustls",
"runtime-tokio",
] }
surrealdb = { version = "2.0.4", features = ["kv-mem"] }
hyper = "1.0.1"
redis_pool = "0.6.0"
redis = { version = "0.27.2" }
tower = "0.4.13"
http-body-util = "0.1.0"
axum_session_sqlx = { path = "./databases/sqlx", features = ["sqlite"] }
axum_session_surreal = { path = "./databases/surreal" }
axum_session_redispool = { path = "./databases/redispool" }
axum_session.workspace = true
chrono.workspace = true
async-trait.workspace = true
[[example]]
name = "any"
[[example]]
name = "postgres"
[[example]]
name = "sqlite"
[[example]]
name = "redis"
[[example]]
name = "surrealdb"
[[example]]
name = "middleware_layer"
[[example]]
name = "rest_test"
required-features = ["rest_mode"]
[[example]]
name = "enable_signed_cookies_headers"
[[example]]
name = "session_mode"
[[example]]
name = "session_null_pool"