This small book describes how to use Rust and WebAssembly together. It also consists of tutorials with cool exercises.
Built with 🦀🕸 by The Rust and WebAssembly Working Group & the Rust WASM-WASI contributors
This repo contains documentation on using Rust for wasm, common workflows, how to get started and more as you dive deeper. It acts as a guide for doing some really neat things with rust.
If you would like to start learning how to use Rust and WebAssembly together, you can read the book online here.
Open issues for improving the Rust and WebAssembly book.
For issues on the original book see here.
The book is made using mdbook
. To install it you'll need cargo
installed. If you don't have any Rust tooling installed, you'll need to install rustup
first. Follow the instructions on the site in order to get
set up.
Once you have that done then just do the following:
$ cargo install mdbook
Make sure the cargo install
directory is in your $PATH
so that you can run
the mdbook binary.
Now just run this command from root directory of your local git clone of the book:
$ mdbook serve
This will serve the book locally on the localhost:3000
port for you to read in your web browser.
If you wish to contribute fixes or changes to this book, running mdbook serve
in your terminal will automatically generate and serve the files as you make changes.
Alternatively, the files are all written in Markdown so if you don't want to generate the book
to read them, then you can open the *.md files in the src
directory.