mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
19 lines
398 B
Text
19 lines
398 B
Text
|
|
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
|
|
|
|
|