chemicstry / wasm_thread

A rust `std::thread` replacement for wasm32 target
Apache License 2.0
123 stars 16 forks source link

cfg: added cargo/config; add +nightly #3

Closed Horki closed 3 years ago

Horki commented 3 years ago

@chemicstry Added +nightly to cargo build

chemicstry commented 3 years ago

I was thinking of using .cargo/config.toml like this, but then decided not to, because you can't specify build-std just for one target. All targets are forced to recompile std this way.

It would work if it was just for wasm_thread examples, but build_wasm.sh is more of an example how to build other projects using this library. I don't think there is a workaround for this until wasm atomics are stabilized in rust https://github.com/rust-lang/rust/issues/77839

Horki commented 3 years ago

@chemicstry Ok, seems to make sense;