-
Notifications
You must be signed in to change notification settings - Fork 64
/
Cargo.toml
39 lines (35 loc) · 1.5 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
[workspace.lints.rust]
unsafe_code = "forbid"
# unused = "allow" # For experimental 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-rpc-app", # e.g., rpc handlers for app (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.0", features = ["with-sea-query"]}
sqlx = { version = "0.7", features = [ "macros", "runtime-tokio", "postgres", "uuid" ] }
sea-query = "0.31"
sea-query-binder = { version = "0.6", features = ["sqlx-postgres", "with-uuid", "with-time" ] }
# -- JSON-RPC
# Lock to specific version during 0.1.x
rpc-router = { version = "=0.1.3" }
# -- Others
time = {version = "0.3", features = ["formatting", "parsing", "serde"]}
derive_more = {version = "1.0.0-beta", features = ["from", "display"] }