diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..04ce860 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,28 @@ +[target.wasm32-unknown-emscripten] +rustflags = [ + "-C", + "link-arg=-s", + "-C", + "link-arg=FULL_ES2", + "-C", + "link-arg=-s", + "-C", + "link-arg=FULL_ES3", + "-C", + "link-arg=-s", + "-C", + "link-arg=USE_SDL=2", + "-C", + "link-arg=-s", + "-C", + "link-arg=MAX_WEBGL_VERSION=2 ", + "-C", + "link-arg=-s", + "-C", + "link-arg=MIN_WEBGL_VERSION=2", + "-C", + "link-arg=-s", + "-C", + "link-arg=ERROR_ON_UNDEFINED_SYMBOLS=0", # for ignoring some egl symbols. needed for wgpu + +] \ No newline at end of file