ReadMe
This commit is contained in:
@ -28,14 +28,9 @@ while test $# -gt 0; do
|
||||
esac
|
||||
done
|
||||
|
||||
# ./setup_web.sh # <- call this first!
|
||||
|
||||
CRATE_NAME="reaction_systems_gui"
|
||||
CRATE_NAME_SNAKE_CASE="${CRATE_NAME//-/_}" # for those who name crates with-kebab-case
|
||||
CRATE_NAME_SNAKE_CASE="${CRATE_NAME//-/_}"
|
||||
|
||||
# This is required to enable the web_sys clipboard API which egui_web uses
|
||||
# https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html
|
||||
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html
|
||||
export RUSTFLAGS='--cfg=web_sys_unstable_apis --cfg getrandom_backend="wasm_js"'
|
||||
|
||||
# Clear output from old stuff:
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
# This scripts runs various CI-like checks in a convenient way.
|
||||
set -eux
|
||||
|
||||
cargo check --workspace --all-targets
|
||||
|
||||
@ -7,4 +7,4 @@ cargo install wasm-bindgen-cli
|
||||
cargo update -p wasm-bindgen
|
||||
|
||||
# For local tests with `./start_server`:
|
||||
cargo install basic-http-server
|
||||
# cargo install basic-http-server
|
||||
|
||||
Reference in New Issue
Block a user