Skip to content

Commit 6769403

Browse files
Narek Galstyanlu-zero
Narek Galstyan
authored andcommitted
Clarify documentation about wasm32 target_feature gates
1 parent f1934fd commit 6769403

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/core_arch/src/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ pub mod arch {
5757

5858
/// Platform-specific intrinsics for the `wasm32` platform.
5959
///
60+
61+
/// # Availability
62+
///
63+
/// Note that intrinsics gated by `target_feature = "atomics"` or `target_feature = "simd128"`
64+
/// are only available **when the standard library itself is compiled with the the respective
65+
/// target feature**. This version of the standard library is not obtainable via `rustup`,
66+
/// but rather will require the standard library to be compiled from source.
6067
/// See the [module documentation](../index.html) for more details.
6168
#[cfg(any(target_arch = "wasm32", dox))]
6269
#[doc(cfg(target_arch = "wasm32"))]

0 commit comments

Comments
 (0)