Closed mverleg closed 2 years ago
Thanks for reporting this. I've not tried using wasm before but I'll try and take a look when I get some time.
You could try
ustr = { git = "https://github.com/IWANABETHATGUY/ustr", branch = "chore/bump-parking-lot", default-features = false, features = [
"parkinglot",
] }
I have tested locally, the failed message gone after I bump the parking_lot
to 0.12.1
I don't know if wasm-pack is supported by ustr, but I think it'd be useful to record this, in case anyone else runs into it. I'm also not sure if the problem is with ustr or wasm-pack or some dependency.
Problem
Building WebAssembly with wasm-pack 0.10.1 fails if the project uses
Ustr
:The error is (with some paths shortened):
If the target is
web
, the error is different and happens at runtime, but I believe it's still related.Analysis
Looks a bit like rust-lang/rust issue 72758 but I'm not sure.
Minimal example
Wasm-pack is needed:
cargo install wasm-pack
Cargo.toml:
src/lib/rs