Skip to content

A bunch of mini-projects in Rust

License

Notifications You must be signed in to change notification settings

luuap/rust-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Projects

Building the WASM projects

  • From the root directory, run ./scripts/build-wasm.sh <scope> where <scope> is the scope name of the package,

Using WASM packages

  • Run ./scripts/create-global-links.sh, this will create global npm packages under the scope specified when running build script.
  • Run npm link @<scope>/<package-name> in project directory. Then import {...} from @<scope>/<package-name> in project files.

Gotchas

  • Projects that import the packages must be using a bundler that supports WASM modules. E.g. Webpack 5 with experimental features.

About

A bunch of mini-projects in Rust

Resources

License

Stars

Watchers

Forks