Skip to content

Commit f7d5a12

Browse files
committed
Pass rustdocflags to doctests
1 parent 6ec30b8 commit f7d5a12

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ jobs:
263263
run: |
264264
cargo test --doc --workspace --locked --all-features --no-fail-fast --target wasm32-wasip1 \
265265
--config 'target.wasm32-wasip1.rustflags = "-Ctarget-feature=+simd128"' \
266+
--config 'target.wasm32-wasip1.rustdocflags = "-Ctarget-feature=+simd128"' \
266267
--config 'target.wasm32-wasip1.runner = "wasmtime"'
267268
268269

fearless_simd/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! To call a function with the best available target features and get the associated `Simd`
2121
//! implementation, use the [`dispatch!()`] macro:
2222
//!
23-
//! ```rust,ignore
23+
//! ```rust
2424
//! use fearless_simd::{Level, Simd, dispatch};
2525
//!
2626
//! #[inline(always)]

fearless_simd/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
///
3232
/// # Example
3333
///
34-
/// ```rust,ignore
34+
/// ```rust
3535
/// use fearless_simd::{Level, Simd, dispatch};
3636
///
3737
/// #[inline(always)]

fearless_simd_tests/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ cargo install --locked --features simd wasmi_cli
2424
Run WebAssembly tests with:
2525

2626
```sh
27-
cargo test --target wasm32-wasip1 --config 'target.wasm32-wasip1.rustflags = "-Ctarget-feature=+simd128"' --config 'target.wasm32-wasip1.runner = "wasmtime"' # or "wasmi_cli" if you installed that
27+
cargo test --target wasm32-wasip1 \
28+
--config 'target.wasm32-wasip1.rustflags = "-Ctarget-feature=+simd128"' \
29+
--config 'target.wasm32-wasip1.rustdocflags = "-Ctarget-feature=+simd128"' \
30+
--config 'target.wasm32-wasip1.runner = "wasmtime"' # or "wasmi_cli" if you installed that
2831
```

0 commit comments

Comments
 (0)