-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWeb.toml
More file actions
32 lines (29 loc) · 983 Bytes
/
Copy pathWeb.toml
File metadata and controls
32 lines (29 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
default-target = "wasm32-unknown-emscripten"
# This will prepend a given JavaScript file to the resulting `.js` artifact.
# You can put any initialization code here which you'd like to have executed
# when your `.js` file first loads.
#
# This accepts either a string (as shown here), or an array of strings,
# in which case it will prepend all of the specified files in their
# order of appearance.
# prepend-js = "src/shell.js"
[cargo-web]
minimum-version = "0.6.0"
[target.emscripten]
link-args = [
"-O2",
"-s", "ALLOW_MEMORY_GROWTH=1",
# "-s", "ASSERTIONS=1",
"-s", "ASSERTIONS=0",
"-s", "ASYNCIFY",
# "-s", "ASYNCIFY_IGNORE_INDIRECT",
# "-s", "ASYNCIFY_WHITELIST=_emscripten_*,emscripten_*",
"-s", "DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0",
"-s", "EMTERPRETIFY=0",
"-s", "EMTERPRETIFY_ASYNC=0",
"-s", "USE_GLFW=3",
"-s", "USE_PTHREADS=0",
"-s", "WASM=1",
"-s", "WASM_MEM_MAX=1073741824",
# "--profiling",
]