The project consists of three Crates organized in a common workspace.
- Web Server: wasm-svg-ws, based on Actix Web
- Library: wasm-svg-lib, wrapper around WEB API based on web-sys
- Examples: wasm-svg-examples, example code using the library, compile target: wasm
In the project root run
cargo build -p wasm-svg-ws
cargo run -p wasm-svg-ws
The web server binds on localhost port 8080.
In the project root run
cargo build -p wasm-svg-lib
Change to the Crate root of the example you are interested in and run
cd examples/simple
examples/simple$ wasm-pack build --target web