2026-03-25 16:18:17 +01:00
|
|
|
[package]
|
|
|
|
|
name = "client_web"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2021"
|
|
|
|
|
|
2026-03-29 17:15:22 +02:00
|
|
|
[package.metadata.leptos-i18n]
|
|
|
|
|
default = "en"
|
|
|
|
|
locales = ["en", "fr"]
|
|
|
|
|
|
2026-03-25 16:18:17 +01:00
|
|
|
[dependencies]
|
2026-03-29 17:15:22 +02:00
|
|
|
leptos_i18n = { version = "0.5", features = ["csr", "interpolate_display"] }
|
2026-04-22 17:42:05 +02:00
|
|
|
trictrac-store = { path = "../../store" }
|
|
|
|
|
backbone-lib = { path = "../backbone-lib" }
|
2026-04-11 18:19:01 +02:00
|
|
|
leptos = { version = "0.7", features = ["csr"] }
|
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
|
serde_json = "1"
|
|
|
|
|
futures = "0.3"
|
|
|
|
|
rand = "0.9"
|
|
|
|
|
gloo-storage = "0.3"
|
2026-03-25 16:18:17 +01:00
|
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
|
|
|
wasm-bindgen-futures = "0.4"
|
2026-04-11 14:36:15 +02:00
|
|
|
gloo-timers = { version = "0.3", features = ["futures"] }
|
2026-03-25 20:16:46 +01:00
|
|
|
# getrandom 0.3 requires an explicit WASM backend; "wasm_js" uses window.crypto.getRandomValues.
|
|
|
|
|
# Must be a direct dependency (not just transitive) for the feature to take effect.
|
|
|
|
|
getrandom = { version = "0.3", features = ["wasm_js"] }
|
2026-04-11 18:19:01 +02:00
|
|
|
web-sys = { version = "0.3", features = [
|
|
|
|
|
"AudioContext",
|
|
|
|
|
"AudioParam",
|
|
|
|
|
"AudioNode",
|
|
|
|
|
"AudioDestinationNode",
|
|
|
|
|
"AudioScheduledSourceNode",
|
|
|
|
|
"GainNode",
|
|
|
|
|
"OscillatorNode",
|
|
|
|
|
"OscillatorType",
|
|
|
|
|
"BaseAudioContext",
|
2026-04-17 20:04:40 +02:00
|
|
|
"HtmlAudioElement",
|
2026-04-11 18:19:01 +02:00
|
|
|
] }
|