forked from tvallotton/rocket_auth
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
104 lines (77 loc) · 1.94 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
[package]
name = "rocket_auth"
version = "0.4.0"
authors = ["[email protected]"]
edition = "2018"
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/tvallotton/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"]
[dependencies.rusqlite]
version = "0.30.0"
optional = true
[dependencies]
rand = "0.8.5"
rust-argon2 = "1.0.0"
lazy_static = "1.4.0"
regex = "1.5.6"
serde_json = "1.0.82"
chashmap = "2.2.2"
thiserror = "1.0.31"
async-trait = "0.1.56"
fehler = "1.0.0"
chrono = "0.4.19"
validator = { version = "0.15.0", features = ["derive"] }
futures= "0.3.21"
[dependencies.sqlx]
version = "0.7.4"
optional = true
[dependencies.rocket]
version = "0.5.0"
features = ["secrets"]
[dependencies.serde]
version = "1.0.138"
features = ["derive"]
[dependencies.tokio-postgres]
version = "0.7.6"
optional = true
[dependencies.redis]
version = "0.21.5"
features = ["aio", "tokio-comp"]
optional = true
[dependencies.tokio]
version = "1.19.2"
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.21.5"
features = ["aio", "tokio-comp"]
[dev-dependencies.rocket_dyn_templates]
version = "0.1.0"
features = ["tera"]
[dev-dependencies.sqlx]
version = "0.7.4"
features = ["runtime-tokio-rustls"]
[dev-dependencies.rocket_auth]
path = "../rocket_auth"
features = [
"sqlx-sqlite",
"sqlx-postgres",
"sqlx-mysql",
"redis",
"tokio-postgres",
"rusqlite",
]