about summary refs log tree commit diff
path: root/library/std/src/sys/wasm
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2022-12-14 13:55:30 +0100
committerjoboet <jonasboettiger@icloud.com>2022-12-14 13:55:30 +0100
commitf9b56846ef42fa516c5fc53bce84835a5bc108a0 (patch)
tree5c006f6cecd951d2466459df308ce431e03a02aa /library/std/src/sys/wasm
parentdc30b92cc576ed9e097db7fece0af13662de8d8d (diff)
downloadrust-f9b56846ef42fa516c5fc53bce84835a5bc108a0.tar.gz
rust-f9b56846ef42fa516c5fc53bce84835a5bc108a0.zip
std: use a more efficient `Once` on platforms without threads
Diffstat (limited to 'library/std/src/sys/wasm')
-rw-r--r--library/std/src/sys/wasm/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sys/wasm/mod.rs b/library/std/src/sys/wasm/mod.rs
index d68c3e5f1df..77ebe3c4ac6 100644
--- a/library/std/src/sys/wasm/mod.rs
+++ b/library/std/src/sys/wasm/mod.rs
@@ -66,6 +66,8 @@ cfg_if::cfg_if! {
     } else {
         #[path = "../unsupported/locks/mod.rs"]
         pub mod locks;
+        #[path = "../unsupported/once.rs"]
+        pub mod once;
         #[path = "../unsupported/thread.rs"]
         pub mod thread;
     }