forked from deltaphc/raylib-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeb.toml
22 lines (19 loc) · 913 Bytes
/
Web.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# The default value of `--target` used when building this crate
# in cases where it's not specified on the command line.
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]
# Asserts the minimum required version of `cargo-web` necessary
# to compile this crate; supported since 0.6.0.
minimum-version = "0.6.0"
[target.emscripten]
# This will enable Emscripten's SDL2 port. Consult Emscripten's documentation
# for more details.
link-args = ["-s", "USE_GLFW=3", "-s", "ASSERTIONS=1", "-s", "ASYNCIFY=1", "--profiling"]