Skip to content

Tool for building and running rust wasm binary targets for web

Notifications You must be signed in to change notification settings

HexyWitch/wasm-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-bin

Build Status

Tool for building and packaging rust wasm binaries for the web.

Uses wasm-bindgen for generating javascript bindings.

Setup

Install wasm-bin as a cargo package

$ cargo install --git https://github.com/Healthire/wasm-bin

Building

Building is as simple as running the build command in your project directory

$ wasm-bin build

During the build process wasm-bin will ask you to confirm automatically installing wasm-bindgen CLI tool if it is not found on your system.

The wasm-bin build outputs a bundled javascript app to ./target/wasm-bin/<target_name>/<target_name>.js.

Running

Running a packaged is as easy as building.

$ wasm-bin run

When the build is finished, the application will be served at http://localhost:8000.

A static HTML file can be served instead of the default HTML by creating a ./html/<target_name>.html file.

About

Tool for building and running rust wasm binary targets for web

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages