Skip to content

Commit

Permalink
Merge pull request #382 from daxpedda/wasm-atomic-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu authored May 26, 2023
2 parents b440378 + 64c5ef9 commit 43dc3f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ lock.
There are a few restrictions when using this library on stable Rust:

- The `wasm32-unknown-unknown` target is only fully supported on nightly with
`-C target-feature=+atomics` in `RUSTFLAGS` and `-Z build-std` passed to cargo.
parking_lot will work mostly fine on stable, the only difference is it will
panic instead of block forever if you hit a deadlock.
`-C target-feature=+atomics` in `RUSTFLAGS` and `-Zbuild-std=panic_abort,std`
passed to cargo. parking_lot will work mostly fine on stable, the only
difference is it will panic instead of block forever if you hit a deadlock.
Just make sure not to enable `-C target-feature=+atomics` on stable as that
will allow wasm to run with multiple threads which will completely break
parking_lot's concurrency guarantees.
Expand Down

0 comments on commit 43dc3f9

Please sign in to comment.