rten icon indicating copy to clipboard operation
rten copied to clipboard

Build rten-simd docs for Wasm

Open robertknight opened this issue 3 months ago • 2 comments

The rten-simd documentation is missing docs for architecture-specific types except for x64. The Isa page for example is missing the structs for Isa types used on Arm and WASM.

I was reminded of this by https://internals.rust-lang.org/t/make-aarch64-apple-darwin-one-of-the-default-targets-for-docs-rs/23583.

robertknight avatar Oct 01 '25 10:10 robertknight

The Arm issue has been resolved by https://blog.rust-lang.org/2025/10/16/docsrs-changed-default-targets/. Selecting the aarch64-apple-darwin platform in the "Platform" dropdown will now show Arm-specific docs. That leaves WASM.

robertknight avatar Oct 18 '25 12:10 robertknight

On wasm32 it isn't sufficient to just build for the wasm32-unknown-unknown target. SIMD support requires the simd128 target feature is enabled.

Building the docs with:

cargo doc -p rten-simd --target wasm32-unknown-unknown

Does not list the Wasm32Isa struct under implementors of the Isa trait, which needs to be solved somehow.

robertknight avatar Nov 06 '25 20:11 robertknight