31 releases

0.7.0 Oct 24, 2024
0.6.2 Jan 30, 2023
0.6.0 Nov 24, 2022
0.5.0 Nov 12, 2021
0.0.2 Feb 22, 2019

#797 in Graphics APIs

Download history 1070/week @ 2024-08-17 986/week @ 2024-08-24 1311/week @ 2024-08-31 949/week @ 2024-09-07 848/week @ 2024-09-14 1182/week @ 2024-09-21 902/week @ 2024-09-28 394/week @ 2024-10-05 680/week @ 2024-10-12 1067/week @ 2024-10-19 817/week @ 2024-10-26 897/week @ 2024-11-02 144/week @ 2024-11-09 376/week @ 2024-11-16 843/week @ 2024-11-23 885/week @ 2024-11-30

2,406 downloads per month
Used in 62 crates (3 directly)

Apache-2.0 OR MIT

395KB
4.5K SLoC

Running the examples

Ensure both cargo and npm are installed.

Make sure that wasm-pack is installed:

$ cargo install wasm-pack

Then run the following:

$ cd examples/basic && ./build.sh

Then navigate your browser to the local web server that was started.

Testing

The easiest way is to use wasm-pack:

$ cargo install wasm-pack

Then use wasm-pack to run the tests:

$ wasm-pack test --chrome --headless

Tests are currently run only against chrome, once tests are made less brittle we'll also run against other browsers.

References:


lib.rs:

The Web Canvas backend for the Piet 2D graphics abstraction.

Dependencies

~11MB
~204K SLoC