fix(deps): chrono wasmbind feature for WASM compat #84
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_archipelagos!84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_chrono_wasmbind"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the WASM panic
time not implemented on this platformthat hit Calendar the moment it mounted.chrono was missing the
wasmbindfeature, sochrono::Local::now()fell back tostd::time::SystemTime::now()which WASM doesn't support. Addingwasmbindroutes throughjs_sys::Date::now()instead.Changes
Cargo.toml(workspace): add"wasmbind"to chrono's feature list.archipelagos/calendar/Cargo.toml: switch from its localchrono = {...}override tochrono.workspace = true(inherits the feature automatically).Test plan
cargo check -p hero_archipelagos_core -p hero_archipelagos_calendargreencargo fmt --checkgreendx build --package hero_os_app --websucceedsCloses #82
Closes lhumina_code/hero_os#51
WIP: fix(deps): chrono wasmbind feature for WASM compatto fix(deps): chrono wasmbind feature for WASM compat