Skip to content

Demo showing how to integrate a Rust project compiled to Web Assembly with PNPM, which is helpful for monorepos.

License

Notifications You must be signed in to change notification settings

HarryGifford/rust-wasm-demo

Repository files navigation

rust-wasm-demo

This simple project demonstrates how to use a Rust project compiled to Web Assembly with PNPM, which is helpful for monorepos.

There are a few simple packages.

  • my-rust-lib. A simple rust library to be compiled into WASM.
  • my-ts-lib. A simple TypeScript library that depends on my-rust-lib.
  • my-webpack-app This is a simple Webpack app that integrates some Rust code.

Usage

To build, run pnpm run build. This will recursively run the build command for every subpackage listed in package-list.json.

The packages in package-list.json must be listed in order so that packages that depend on other packages in the monorepo appear later in the list.

About

Demo showing how to integrate a Rust project compiled to Web Assembly with PNPM, which is helpful for monorepos.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published