Cargo.toml 1.2 KB

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