@kreijstal/rhwp-wasm
v0.8.6-build.1
Published
rhwp v0.8.6: HWP/HWPX document renderer in WebAssembly
Downloads
177
Readme
@kreijstal/rhwp-wasm
rhwp v0.8.6: HWP/HWPX document renderer in WebAssembly
Upstream: https://github.com/edwardkim/rhwp
Use
Pinned to this version, from a CDN:
https://cdn.jsdelivr.net/npm/@kreijstal/[email protected]/<file>
https://unpkg.com/@kreijstal/[email protected]/<file>Reproducing this build
Everything here is built from source; nothing prebuilt is repackaged. The script that produced these files is included as build/build.sh.
Toolchain
- Rust, not emscripten:
rustc 1.94.1 (e408947bf 2026-03-25)with its ownwasm32-unknown-unknowntarget,cargo 1.94.1 (29ea6fb6a 2026-03-24) - wasm-bindgen CLI at exactly the version in rhwp's Cargo.lock (the script installs it with
cargo install --locked) wasm-opt -O2from Binaryenwasm-opt version 132 (version_132-49-gd03c25ea43); Arch Linux
Sources
| Source | Pin |
|---|---|
| edwardkim/rhwp | tag v0.8.6 (commit f1f9c6ae58344ee9368996d3543f76b9345cf227) |
| Rust crates | rhwp's Cargo.lock (cargo build --locked) |
Steps
With rustup and the wasm32 target (rustup target add wasm32-unknown-unknown):
mkdir rhwp-wasm && cd rhwp-wasm && cp /path/to/this/package/build/* .
./build.shThe output lands in dist/. Compare it against the checksums below.
The comment at the top of the build script, verbatim:
Builds rhwp (https://github.com/edwardkim/rhwp, MIT) — the Rust HWP/HWPX parser
and SVG renderer behind @rhwp/core and nextcloud-hwp — for the browser, with
Rust's own wasm32-unknown-unknown target (no emscripten) and wasm-bindgen.
goldenlayouteditor serves ./dist at /rhwp-wasm (server.js, RHWP_WASM_DIR).
./build.sh clone (if needed) and build into ./dist
Output: dist/rhwp.js (wasm-bindgen ES module, --target web), dist/rhwp_bg.wasmChecksums of the published files
1c3a7d5643b163a3ead4965e1bea33b832caee5bfca265efe42afcd7bc696b5b LICENSE
2fc6678663ac967dc6d7e4355b8de476f78573f06d9dd1e476eb4ec17088d709 rhwp_bg.wasm
ec7f8ca3c0521baa1248790ea9600092f483a62d8a85fb1f519e54d5daea2094 rhwp_bg.wasm.d.ts
b77801ad1b8e3838d83bbe4bce2cea103b5e23393f1f38ad751ab8d7bd658ec2 rhwp.d.ts
e84c5b03cd32927a86e1a2c8acf2c43d60127fcff83f8896daf85b864c78968a rhwp.js
007ea1ed2d92d721af1f4260ca98e452eb40b75346854c4ef565f26c23c7d19b VERSIONLicenses
MIT. The license texts of everything compiled in are in LICENSES/.
