From 64c5ef92e3f8ee4c922bcd2087af7d712a8375c4 Mon Sep 17 00:00:00 2001 From: dAxpeDDa Date: Fri, 12 May 2023 15:31:18 +0200 Subject: [PATCH] Adjust the `wasm32-unknown-unknown` atomic docs --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e0706a75..b5afdd81 100644 --- a/README.md +++ b/README.md @@ -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.