rustc-serialize icon indicating copy to clipboard operation
rustc-serialize copied to clipboard

seralize Path/PathBuf as &str/String for wasm32

Open ghost opened this issue 6 years ago • 2 comments

Hopefully a sensible strategy to get wasm32 to work for those crates that still depend on rustc-serialize.

related:

  • https://github.com/rustwasm/team/issues/96
  • https://github.com/rust-lang-deprecated/rustc-serialize/pull/190

ghost avatar Jun 12 '18 17:06 ghost

There is already an outstanding PR. However this crate is deprecated so it won't get any more releases. The idea is to move away from rustc-serialize instead. I disagree with that though, as it's still one of the most downloaded crates and lots of crates due to semver still depend on it.

CryZe avatar Jun 13 '18 14:06 CryZe

Your solution doesn't compile on wasm32-*-emscripten btw.

CryZe avatar Jun 13 '18 14:06 CryZe