Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
112 lines (103 loc) · 4.08 KB
/
Copy pathCargo.toml
File metadata and controls
112 lines (103 loc) · 4.08 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
106
107
108
109
110
111
112
[workspace]
resolver = "3"
members = ["crates/config", "crates/domain", "crates/leptos-utils", "gateway", "live-search", "i18n-demo", "e2e-tests"]
exclude = ["third-party/manyhow", "third-party/proc-macro-error2"]
[patch.crates-io]
# Temporary source-compatible fixes for dependencies currently used by Leptos.
# Remove each patch once crates.io/upstream contains the corresponding fix.
manyhow = { path = "third-party/manyhow" }
proc-macro-error2 = { path = "third-party/proc-macro-error2" }
[workspace.package]
version = "0.1.0"
edition = "2024"
license = "MIT"
# Rust 1.94 remains the compatibility floor. Development and production builds
# use the current patched stable toolchain from `rust-toolchain.toml`, while CI
# includes an explicit 1.94.1 MSRV lane. Resolver 3 keeps dependency selection
# aware of member `rust-version` constraints.
rust-version = "1.94"
[workspace.dependencies]
anyhow = "1.0"
base64 = "0.23"
axum = "0.8"
chrono = { version = "0.4", features = ["serde"] }
console_error_panic_hook = "0.1"
futures = "0.3"
gloo-net = { version = "0.7", features = ["eventsource"] }
jsonwebtoken = { version = "11", default-features = false, features = ["aws_lc_rs"] }
leptos = "0.8"
leptos_axum = "0.8"
leptos_i18n = "0.6"
leptos_meta = "0.8"
leptos_router = "0.8"
reqwest = { version = "0.13", default-features = false, features = ["json", "rustls", "stream"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sqlx = { version = "0.9", default-features = false, features = ["postgres", "runtime-tokio", "tls-rustls", "json", "macros", "migrate", "chrono", "uuid"] }
subtle = "2.6"
thiserror = "2.0.20"
tokio = { version = "1.53", features = ["full"] }
tokio-stream = { version = "0.1", features = ["sync"] }
tokio-util = { version = "0.7", features = ["rt"] }
tower = "0.5"
tower-http = { version = "0.7", features = ["trace", "cors", "fs", "timeout"] }
tracing = "0.1"
tracing-subscriber = "0.3"
uuid = { version = "1.26", features = ["serde"] }
wasm-bindgen = "0.2"
axum-prometheus = "0.10"
tower_governor = { version = "0.8", features = ["axum"] }
validator = { version = "0.21", features = ["derive"] }
aws-lc-rs = "1"
moka = { version = "0.12", features = ["future"] }
stylance = "0.8"
leptos-use-watch-debounce-throttle = "0.20"
leptos-struct-table = "0.19"
lepticons = "0.13"
utoipa = "6"
# `axum` enables the SwaggerUi router builder; `vendored` bundles Swagger UI assets so Docker builds don't need network.
utoipa-swagger-ui = { version = "10", features = ["axum", "vendored"] }
opentelemetry = "0.32"
opentelemetry_sdk = { version = "0.32", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.32", features = ["reqwest-client", "http-proto", "reqwest-rustls"] }
tracing-opentelemetry = "0.33"
axum-tracing-opentelemetry = "0.42"
# 0.5 aligns with this workspace's SQLx 0.9, OpenTelemetry 0.32 and Rust 1.94.
# Only tracing is enabled here; sqlx-otel runtime features are for its optional
# pool metrics task, and live-search does not currently install an OTel MeterProvider.
sqlx-otel = { version = "0.5", default-features = false, features = ["postgres"] }
console-subscriber = "0.5"
criterion = { version = "0.8", features = ["html_reports"] }
insta = "1"
proptest = "1"
testcontainers = "0.28"
# Layered config: TOML file + RWF_* environment variable overrides.
# The `config` crate gives us typed deserialization + per-source priority
# without needing unsafe or hand-rolled merge logic.
config = { version = "0.15", default-features = false, features = ["toml"] }
# Shared domain types (no framework dependencies).
rwf-domain = { path = "crates/domain" }
[workspace.lints.rust]
unsafe_code = "deny"
rust_2024_compatibility = { level = "deny", priority = -1 }
missing_debug_implementations = "warn"
[workspace.lints.clippy]
pedantic = { level = "deny", priority = -1 }
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
nursery = { level = "warn", priority = -1 }
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
[profile.bench]
inherits = "release"
debug = true
strip = false
[profile.dev.package."*"]
opt-level = 3