Skip to content

Commit

Permalink
expose wasm intrinsics using target_family = "wasm" (rust-lang#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek authored Oct 31, 2021
1 parent 1181fd4 commit ea14173
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions crates/core_arch/src/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@ pub mod arch {
pub use crate::core_arch::wasm32::*;
}

/// Platform-specific intrinsics for the `wasm` target family.
///
/// See the [module documentation](../index.html) for more details.
#[cfg(any(target_family = "wasm", doc))]
#[doc(cfg(target_family = "wasm"))]
#[stable(feature = "simd_wasm32", since = "1.33.0")]
pub mod wasm {
#[stable(feature = "simd_wasm32", since = "1.33.0")]
pub use crate::core_arch::wasm32::*;
}

/// Platform-specific intrinsics for the `mips` platform.
///
/// See the [module documentation](../index.html) for more details.
Expand Down Expand Up @@ -240,8 +251,8 @@ mod aarch64;
#[doc(cfg(any(target_arch = "arm")))]
mod arm;

#[cfg(any(target_arch = "wasm32", target_arch = "wasm64", doc))]
#[doc(cfg(any(target_arch = "wasm32", target_arch = "wasm64")))]
#[cfg(any(target_family = "wasm", doc))]
#[doc(cfg(target_family = "wasm"))]
mod wasm32;

#[cfg(any(target_arch = "mips", target_arch = "mips64", doc))]
Expand Down

0 comments on commit ea14173

Please sign in to comment.