Skip to content

Minimal example of the gcode-rs crate with web assembly

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

etrombly/gcode-yew

Repository files navigation

About

This is a minimal example of the gcode-rs crate with web assembly.

Screenshot

Usage

1) Install Rust, wasm-pack, and "rollup"

Follow the instructions at https://www.rust-lang.org/tools/install and follow the installation link at wasm-pack.

2) Build

Enter wasm-pack build --target web from your project's root directory.

3) [temporary] Bundle

Enter rollup ./main.js --format iife --file ./pkg/bundle.js from your project's root directory.

4) [optional] Test Run

Run a webserver from your project's root directory, such as with python3 -m http.server, and load http://localhost:8000/ in a browser to run the app.

5) Deploy

Access your generated build artifacts, bundle.js and yew_wasm_pack_minimal_bg.wasm, in ./pkg from your project's root directory.

About

Minimal example of the gcode-rs crate with web assembly

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •