[GH-ISSUE #368] rustc-serialize does not allow crate to be used with wasm #114

Closed
opened 2026-02-27 20:23:11 +03:00 by kerem · 0 comments
Owner

Originally created by @andar1an on GitHub (Nov 15, 2022).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/368

Describe the bug
Chrono has an optional feature dependency for rustc-serialize which does not work with wasm. Need to use serde.

To Reproduce
Steps to reproduce the behavior:

  1. Try to build a wasm binary that uses your crate

Expected behavior
Can build binary with crate.

Additional context
Is it possible to switch related Chrono code to use serde only?

Originally created by @andar1an on GitHub (Nov 15, 2022). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/368 **Describe the bug** Chrono has an optional feature dependency for rustc-serialize which does not work with wasm. Need to use serde. **To Reproduce** Steps to reproduce the behavior: 1. Try to build a wasm binary that uses your crate **Expected behavior** Can build binary with crate. **Additional context** Is it possible to switch related Chrono code to use serde only?
kerem 2026-02-27 20:23:11 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rspotify#114
No description provided.