subduction_wasm

Crates.iosubduction_wasm
lib.rssubduction_wasm
version0.1.0
created_at2025-10-27 18:17:05.651406+00
updated_at2025-10-27 18:17:05.651406+00
descriptionWasm bindings for Sedimentree Sync
homepage
repositoryhttps://github.com/inkandswitch/subduction
max_upload_size
id1903495
size684,617
(alexjg)

documentation

README

Subduction Wasm bindings

🚧 This is an early release preview. It has a very unstable API. No guarantees are given. DO NOT use for production use cases at this time. USE AT YOUR OWN RISK. 🚧

Build package

wasm-pack build --target web --out-dir pkg

Run tests

Install dependencies:

pnpm install

Install Playwright's browser binaries:

npx playwright install

Run tests:

npx playwright test

View Playwright report:

npx playwright show-report

Naming Conventions

wasm-bindgen-generated types ownership rules can be confusing and cumbersome, with different behavior depending on which side of the Wasm boundary your type was created from. To help keep this straight, we adopt the naming convention:

[!NOTE] Types exported from Rust are prefixed with Wasm. Types imported from JS are prefixed with Js.

Commit count: 0

cargo fmt