Cleaning frontend/Cargo.toml

This commit is contained in:
Greg Burri 2025-05-05 12:15:26 +02:00
parent 424bb7f3a1
commit d86c8ab6fe
3 changed files with 16 additions and 163 deletions

View file

@ -7,12 +7,16 @@ edition = "2024"
[lib]
crate-type = ["cdylib"]
[features]
default = ["console_error_panic_hook"]
[dependencies]
common = { path = "../common" }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`.
console_error_panic_hook = { version = "0.1" }
chrono = { version = "0.4", features = ["serde", "unstable-locales"] }
ron = "0.10"
@ -52,14 +56,13 @@ web-sys = { version = "0.3", features = [
"CssStyleDeclaration",
] }
gloo = { version = "0.11", features = ["futures"] }
gloo = { version = "0.11", default-features = false, features = [
"console",
"events",
"net",
"storage",
"timers",
"utils",
] }
wasm-cookies = "0.2"
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1", optional = true }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"

View file

@ -116,8 +116,6 @@ pub fn setup(
EventListener::new(&days, "click", move |event| {
let target: Element = event.target().unwrap().dyn_into().unwrap();
// gloo::console::log!(event); // TODO: Remove.
if target.class_name() == "number" && options.can_select_date {
let first_day = first_grid_day(
state_clone.get_displayed_date(),