-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathCargo.toml
42 lines (38 loc) · 1.56 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
[workspace.lints.rust]
unsafe_code = "forbid"
# unused = { level = "allow", priority = -1 } # For exploratory dev.
[workspace]
resolver = "2"
members = [
# -- Application Libraries
"crates/libs/lib-utils", # e.g., base64, time.
"crates/libs/lib-rpc-core", # e.g., core rpc utils (using rpc-router crate)
"crates/libs/lib-auth", # e.g., for pwd, token.
"crates/libs/lib-core", # e.g., model, ctx, config.
"crates/libs/lib-web", # e.g., logging, common middleware etc
# -- Application Services
"crates/services/web-server",
# -- Tools
"crates/tools/gen-key",
]
# NOTE: Only the crates that are utilized in two or more sub-crates and benefit from global management
# are handled in workspace.dependencies. Other strategies may also be valid.
[workspace.dependencies]
# -- Serde
serde_with = {version = "3", features = ["time_0_3"] }
# -- Data
# Note: we lock modql version during rcs
modql = { version = "0.4.1", features = ["with-sea-query"]}
sqlx = { version = "0.8", features = [ "macros", "runtime-tokio", "postgres", "uuid" ] }
sea-query = "0.32"
sea-query-binder = { version = "0.7", features = ["sqlx-postgres", "with-uuid", "with-time" ] }
# -- JSON-RPC
# Lock to specific version during 0.1.x
rpc-router = { version = "=0.1.3" }
# -- Web
axum = {version = "0.8", features = ["macros"]}
tower-http = { version = "0.6", features = ["fs"] }
tower-cookies = "0.11"
# -- Others
time = {version = "0.3", features = ["formatting", "parsing", "serde"]}
derive_more = {version = "1.0.0-beta", features = ["from", "display"] }