In this project, I developed a project, that creates a web-pages similar to Rust book. In this solution, I used the wasi target for creating the book.
I used the mdBook
crate for creating a web book pages.
For creating the wasm binary, I used commands:
- First
rustup target add wasm32-wasi
- Second
cargo build --target wasm32-wasi --no-default-features --features search,watch
- Install Wasmer
- Move to folder with a book
cd ./target/wasm32-wasi/debug/my-first-book
- Create a book using wasmer
wasmer --dir . ../mdbook.wasm
- Open the created html file in your browser
Here is an example of the created book: