Watch
1
Fork
You've already forked wasm
0
an opinionated tool to build wasm+ts bindings.
  • TypeScript 88.8%
  • JavaScript 11.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mikkel ALMONTE--RINGAUD 3c3b904440
All checks were successful
Publish / publish (push) Successful in 21s
chore: release v1.3.0
2026-09-01 01:12:14 +02:00
.forgejo/workflows fix(ci): runner 2026-09-01 01:10:12 +02:00
src refactor: migrate bun-only APIs to Node ones 2026-09-01 01:09:50 +02:00
.gitignore chore: initialize 2026-07-19 19:47:02 +02:00
ant.lockb refactor: migrate bun-only APIs to Node ones 2026-09-01 01:09:50 +02:00
eslint.config.ts chore: add eslint configuration 2026-07-27 15:49:36 +02:00
LICENSE chore: add license 2026-07-27 17:12:25 +02:00
package.json chore: release v1.3.0 2026-09-01 01:12:14 +02:00
README.md refactor: migrate bun-only APIs to Node ones 2026-09-01 01:09:50 +02:00
tsconfig.json refactor: migrate bun-only APIs to Node ones 2026-09-01 01:09:50 +02:00
tsdown.config.ts refactor: migrate bun-only APIs to Node ones 2026-09-01 01:09:50 +02:00

Features

A ton of tweaks is applied to the bundle made by wasm-pack.

  • package.json generated using Cargo.toml properties
  • Embedded WASM in the bundle so need to init() anything
  • Simplified d.ts and less noise

Requirements

You should have the following tools globally available.

Usage

You can either use this package through its own registry or through ants.land.

# you should configure `@mentor` registry.
npx @mentor/wasm
bun x @mentor/wasm

# it is published on `ants.land` officially.
ant x @mentor/wasm

You should see the final results in an exported directory. You can publish this directory to any registry 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
features = ["npm"] # cargo features enabled when compiling the wasm crate

If you're using external npm dependencies you can also define them here.

[package.metadata.npm.dependencies]
"@unilim/cas" = "^3.0.0"