Skip to content

DAB0mB/eventsheet-wasm

Repository files navigation

eventsheet-wasm

An extensible custom CSS engine that implements a parser using Rust / WASM. You can find an in depth explanation about the engine in this Medium article; however, the article is refers to the JS version of the engine, and a Rust / Wasm version of it should be coming soon. The purpose of this project, aside from implementing a useful CSS engine, is to compare Wasm to JS side by side with a relatively similar implementation (See js branch).

Pre-requisites

Make sure you have Rust compiler installed along with wasm-pack. More info about the setup can be found here.

Demo

First you need to build the demo:

npm run build-demo

Then you need to create a public server for the generated bundle dir:

serve bundle

Navigate to the address shown on screen e.g. http://192.168.1.128:5000. Note: DO NOT use localhost otherwise you'll get CORS related error. Copy the contents of bundle/eventsheet-demo.js and run it in the browser's dev-console. You should see an interactive button that says "click me" in the middle of the screen.

License

MIT

About

An extensible custom CSS engine that uses WASM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors