slint/examples/graphicstest
2020-05-11 14:30:41 +02:00
..
src Move the main loop implementation into the core library 2020-05-11 14:30:41 +02:00
.gitignore Ignore some generated files 2020-05-11 08:59:39 +02:00
Cargo.toml Move window system creation and other GL related code into the GL backend 2020-05-11 13:11:55 +02:00
index.html Fix wasm build 2020-05-07 15:07:29 +02:00
logo.png Start with image rendering 2020-05-05 18:20:21 +02:00
README Add README that explains how to try the wasm build 2020-05-07 15:07:29 +02:00

To try the WASM build, use these steps:

cargo build --target wasm32-unknown-unknown --bin graphicstest
cd examples/graphicstest
mkdir -p generated
wasm-bindgen ../../target/wasm32-unknown-unknown/debug/graphicstest.wasm --out-dir generated --no-modules
cp index.html generated/

Then serve for example with

cd generated/
python -m SimpleHTTPServer

and go to

http://localhost:8000/index.html