Skip to content

Commit

Permalink
Clarify documentation about wasm32 target_feature gates
Browse files Browse the repository at this point in the history
  • Loading branch information
Narek Galstyan authored and lu-zero committed Jun 4, 2020
1 parent f1934fd commit 6769403
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/core_arch/src/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ pub mod arch {

/// Platform-specific intrinsics for the `wasm32` platform.
///

/// # Availability
///
/// Note that intrinsics gated by `target_feature = "atomics"` or `target_feature = "simd128"`
/// are only available **when the standard library itself is compiled with the the respective
/// target feature**. This version of the standard library is not obtainable via `rustup`,
/// but rather will require the standard library to be compiled from source.
/// See the [module documentation](../index.html) for more details.
#[cfg(any(target_arch = "wasm32", dox))]
#[doc(cfg(target_arch = "wasm32"))]
Expand Down

0 comments on commit 6769403

Please sign in to comment.