@mentor/wasm (1.0.0)

Published 2026-07-21 14:41:14 +00:00 by Mikkel ALMONTE--RINGAUD in mentor/wasm

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-pack noise
  • package.json generated using Cargo.toml properties

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
npm
2026-07-21 14:41:14 +00:00
4
Mikkel ALMONTE--RINGAUD
MIT
3.3 KiB
Assets (1)
wasm-1.0.0.tgz 3.3 KiB
Versions (5) View all
1.3.0 2026-08-31
1.2.0 2026-08-10
1.1.0 2026-07-27
1.0.0 2026-07-21
0.1.0 2026-07-20