| 12345678910111213141516171819202122232425262728293031 |
- [package]
- name = "web"
- version = "0.1.0"
- edition = "2024"
- # The lib target stays host-testable (`cargo test -p web --lib`) and keeps the
- # package name as its crate name. The binary gets a distinct target name so
- # Trunk can select it unambiguously: `cargo --bin web` still emits the cdylib
- # library artifact, which is also named "web" and trips Trunk's
- # "more than one target artifact" guard.
- [lib]
- crate-type = ["cdylib", "rlib"]
- [[bin]]
- name = "web-app"
- path = "src/main.rs"
- [dependencies]
- console_error_panic_hook = "0.1.7"
- # `gloo-net` is already in the lock graph (a leptos dependency); pinning it here
- # as a direct dep keeps the same 0.6.0 resolution. No Node/npm involved.
- gloo-net = { version = "0.6", default-features = false, features = ["http", "json"] }
- # `js-sys` provides the JavaScript `Date` used for the local-time offset; it is
- # already in the lock graph via leptos/wasm-bindgen.
- js-sys = "0.3"
- leptos = { version = "0.8.21", features = ["csr"] }
- leptos_router = "0.8.16"
- serde = { version = "1", features = ["derive"] }
- serde_json = "1"
- wasm-bindgen = "=0.2.129"
- web-sys = { version = "0.3", features = ["Clipboard", "Document", "Element", "HtmlElement", "Location", "Navigator", "Storage", "Window"] }
|