Skip to content

Commit 1bd0ee7

Browse files
committed
Add wasm intrinsics to documentation
1 parent 06243d5 commit 1bd0ee7

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

stdsimd/mod.rs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@
188188
/// * [`powerpc`]
189189
/// * [`powerpc64`]
190190
/// * [`nvptx`]
191+
/// * [`wasm32`]
191192
///
192193
/// [`x86`]: x86/index.html
193194
/// [`x86_64`]: x86_64/index.html
@@ -198,6 +199,7 @@
198199
/// [`powerpc`]: powerpc/index.html
199200
/// [`powerpc64`]: powerpc64/index.html
200201
/// [`nvptx`]: nvptx/index.html
202+
/// [`wasm32`]: wasm32/index.html
201203
///
202204
/// # Examples
203205
///
@@ -362,10 +364,6 @@ pub mod arch {
362364
#[unstable(feature = "stdsimd", issue = "27731")]
363365
pub use coresimd::arch::aarch64;
364366

365-
#[cfg(target_arch = "wasm32")]
366-
#[unstable(feature = "stdsimd", issue = "27731")]
367-
pub use coresimd::arch::wasm32;
368-
369367
#[cfg(all(not(dox), target_arch = "mips"))]
370368
#[unstable(feature = "stdsimd", issue = "27731")]
371369
pub use coresimd::arch::mips;
@@ -386,6 +384,10 @@ pub mod arch {
386384
#[unstable(feature = "stdsimd", issue = "27731")]
387385
pub use coresimd::arch::nvptx;
388386

387+
#[cfg(all(not(dox), target_arch = "wasm32"))]
388+
#[unstable(feature = "stdsimd", issue = "27731")]
389+
pub use coresimd::arch::wasm32;
390+
389391
#[doc(hidden)] // unstable implementation detail
390392
#[unstable(feature = "stdsimd", issue = "27731")]
391393
pub mod detect;
@@ -497,4 +499,16 @@ pub mod arch {
497499
#[doc(cfg(any(target_arch = "nvptx", target_arch = "nvptx64")))]
498500
#[unstable(feature = "stdsimd", issue = "27731")]
499501
pub mod nvptx {}
502+
503+
/// Platform-specific intrinsics for the `wasm32` platform.
504+
///
505+
/// The documentation with the full listing of `wasm32` intrinsics is
506+
/// available in [libcore], but the module is re-exported here in std
507+
/// as well.
508+
///
509+
/// [libcore]: ../../../core/arch/wasm32/index.html
510+
#[cfg(dox)]
511+
#[doc(cfg(target_arch = "wasm32"))]
512+
#[unstable(feature = "stdsimd", issue = "27731")]
513+
pub mod wasm32 {}
500514
}

0 commit comments

Comments
 (0)