Skip to content

obox-systems/wasi-mdbook-demo

Repository files navigation

Wasi mdbook demo

Abstract

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:

  1. First
rustup target add wasm32-wasi
  1. Second
cargo build --target wasm32-wasi --no-default-features --features search,watch

How to run

  1. Install Wasmer
  2. Move to folder with a book
cd ./target/wasm32-wasi/debug/my-first-book
  1. Create a book using wasmer
wasmer --dir . ../mdbook.wasm 
  1. Open the created html file in your browser

Example

Here is an example of the created book:

example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published