-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathCargo.toml
More file actions
66 lines (56 loc) · 2.28 KB
/
Copy pathCargo.toml
File metadata and controls
66 lines (56 loc) · 2.28 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
[package]
name = "torii"
version = "0.5.3"
description = "A modular authentication ecosystem for Rust applications"
edition.workspace = true
repository.workspace = true
license.workspace = true
[package.metadata.docs.rs]
all-features = true # build docs with all features enabled
[dependencies]
torii-core = { path = "../torii-core", version = "0.5.2", default-features = false }
torii-storage-sqlite = { path = "../torii-storage-sqlite", version = "0.5.2", optional = true }
torii-storage-postgres = { path = "../torii-storage-postgres", version = "0.5.2", optional = true }
torii-storage-seaorm = { path = "../torii-storage-seaorm", version = "0.5.2", optional = true }
torii-mailer = { path = "../torii-mailer", version = "0.5.2", optional = true }
# Pool types for builder (re-exported from storage crates)
sqlx = { workspace = true, optional = true }
sea-orm = { workspace = true, optional = true }
# dependencies
chrono.workspace = true # TODO: Make this optional and expose std::time::Duration in APIs
tracing.workspace = true
thiserror.workspace = true
serde_json.workspace = true
serde.workspace = true
[dev-dependencies]
tokio = { workspace = true, features = ["full"] }
testcontainers-modules = { version = "0.12.0", features = [
"postgres",
"mysql",
"mariadb",
] }
tracing-subscriber = { workspace = true }
sqlx = { workspace = true, features = ["sqlite", "runtime-tokio-rustls"] }
[features]
default = ["password", "sqlite"]
# storage backends
sqlite = ["dep:torii-storage-sqlite", "dep:sqlx", "sqlx/sqlite", "sqlx/runtime-tokio-rustls"]
postgres = ["dep:torii-storage-postgres", "dep:sqlx", "sqlx/postgres", "sqlx/runtime-tokio-rustls"]
# seaorm storage backends
seaorm-sqlite = ["dep:torii-storage-seaorm", "dep:sea-orm", "torii-storage-seaorm/sqlite"]
seaorm-postgres = ["dep:torii-storage-seaorm", "dep:sea-orm", "torii-storage-seaorm/postgres"]
seaorm-mysql = ["dep:torii-storage-seaorm", "dep:sea-orm", "torii-storage-seaorm/mysql"]
seaorm = [
"dep:torii-storage-seaorm",
"dep:sea-orm",
"torii-storage-seaorm/sqlite",
"torii-storage-seaorm/postgres",
"torii-storage-seaorm/mysql",
]
# auth features (now implemented as services in torii-core)
password = []
oauth = []
passkey = []
magic-link = []
# mailer feature
mailer = ["dep:torii-mailer", "torii-core/mailer"]