@mentor/wasm (1.0.0)
Installation
@mentor:registry=npm install @mentor/wasm@1.0.0"@mentor/wasm": "1.0.0"About this package
Features
A ton of tweaks is applied to the bundle made by wasm-pack.
- Embedded WASM in the JS bundle
- No need to execute any
init()function to load the WASM - Simplified DTS and removed
wasm-packnoise package.jsongenerated usingCargo.tomlproperties
Requirements
You should have the following tools globally available.
Usage
Once you've set up the registry, you can call the CLI from npx.
npx @mentor/wasm@latest
You should see the final results in an exported directory.
You can directly upload this directory to npm as a package.
Keys in Cargo.toml
You can customize the output by updating your Cargo.toml of your WASM crate.
[package.metadata.npm]
name = "@unilim/cas" # name of your package
If you're using external npm dependencies you can also define them here.
[package.metadata.npm.dependencies]
"@unilim/cas" = "^3.0.0"
Dependencies
Development dependencies
| ID | Version |
|---|---|
| @types/bun | ^1.3.14 |
| tsdown | ^0.22.12 |
| typescript | ^7.0.2 |
Details
Assets (1)
Versions (5)
View all
wasm-1.0.0.tgz
3.3 KiB