@liblrhsmm-rs/wasm
v0.1.0
Published
Browser WebAssembly bindings for liblrhsmm-rs
Readme
@liblrhsmm-rs/wasm
Browser bindings for liblrhsmm-rs. Install with npm install @liblrhsmm-rs/wasm.
import init, * as api from '@liblrhsmm-rs/wasm/web';
await init();
// Use api after initialization. See the repository's WASM API documentation.@liblrhsmm-rs/wasm is the same web entrypoint. Use @liblrhsmm-rs/wasm/bundler
with a WebAssembly-aware bundler such as webpack 5 with asyncWebAssembly enabled.
The bundler entrypoint is initialized by the bundler and has no default init function.
Both entrypoints export the same computational API; the web initializer is additional.
The web .wasm asset must be served relative to its generated JavaScript module.
Node.js users should install @liblrhsmm-rs/node for the native implementation.
No nodejs, deno, no-modules or source-phase-import module build is distributed.
GPL-3.0-or-later. See LICENSE and the tagged repository for source and attribution.
