Skip to content

Commit 4c90a73

Browse files
committed
Add emscripten/wasm to dox builds
1 parent 1ee8056 commit 4c90a73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@
7272
#![cfg_attr(target_os = "dragonfly", doc(
7373
html_root_url = "https://doc.rust-lang.org/libc/x86_64-unknown-dragonfly"
7474
))]
75+
#![cfg_attr(all(target_os = "emscripten", target_arch = "asmjs"), doc(
76+
html_root_url = "https://doc.rust-lang.org/libc/asmjs-unknown-emscripten"
77+
))]
78+
#![cfg_attr(all(target_os = "emscripten", target_arch = "wasm32"), doc(
79+
html_root_url = "https://doc.rust-lang.org/libc/wasm32-unknown-emscripten"
80+
))]
7581

7682
// Attributes needed when building as part of the standard library
7783
#![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute, cfg_target_vendor))]

0 commit comments

Comments
 (0)