forked from tvallotton/rocket_auth
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
105 lines (79 loc) · 2.07 KB
/
Cargo.toml
File metadata and controls
105 lines (79 loc) · 2.07 KB
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
[package]
name = "rocket_auth2"
version = "0.6.2"
authors = ["tvallotton@uc.cl", "michalmoczulski1a@gmail.com"]
edition = "2021"
license = "MIT OR Apache-2.0"
description = "A high level authentication management library for Rocket applications. It supports both SQLite and Postgres."
repository = "https://github.com/michalmoc/rocket_auth"
readme = "README.md"
categories = ["web-programming"]
keywords = ["rocket", "users", "authentication", "auth", "session"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package.metadata.docs.rs]
all-features = true
[features]
sqlx-sqlite = ["sqlx/sqlite"]
sqlx-postgres = ["sqlx/postgres"]
sqlx-mysql = ["sqlx/mysql"]
sled = ["dep:sled"]
[dependencies]
rand = ">=0.9"
rust-argon2 = ">=2.1"
regex = ">=1.11"
serde_json = ">=1.0.138"
chashmap = ">=2.2.2"
thiserror = ">=2.0.11"
async-trait = ">=0.1.86"
chrono = ">=0.4.39"
validator = { version = ">=0.20.0", features = ["derive", "unic"] }
futures = ">=0.3.31"
bson = { version = "2.13" }
sled = { version = ">=0.34", optional = true }
[dependencies.rusqlite]
version = "0.31.0"
optional = true
[dependencies.sqlx]
version = ">=0.6.0"
optional = true
[dependencies.rocket]
version = ">=0.5.0"
features = ["secrets"]
[dependencies.serde]
version = ">=1.0.217"
features = ["derive"]
[dependencies.tokio-postgres]
version = "0.7.13"
optional = true
[dependencies.redis]
version = "0.29"
features = ["aio", "tokio-comp"]
optional = true
[dependencies.tokio]
version = "1.43"
features = ["rt", "rt-multi-thread"]
[dev-dependencies]
tokio-postgres = "0.7.6"
[dev-dependencies.rocket]
version = ">=0.5.0"
features = ["secrets", "json"]
[dev-dependencies.redis]
version = "0.29"
features = ["aio", "tokio-comp"]
[dev-dependencies.rocket_dyn_templates]
version = ">=0.2.0"
features = ["tera"]
[dev-dependencies.sqlx]
version = ">=0.8.0"
features = ["runtime-tokio-rustls"]
[dev-dependencies.rocket_auth2]
path = "../rocket_auth"
features = [
"sqlx-sqlite",
"sqlx-postgres",
"sqlx-mysql",
"redis",
"tokio-postgres",
"rusqlite",
"sled"
]