This commit is contained in:
elvis
2025-10-29 17:16:14 +01:00
parent efc08a2f3a
commit 284f136409
4 changed files with 105 additions and 8 deletions

View File

@ -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: