Skip to content

Commit 7ce8078

Browse files
committed
Add .cargo/config.toml
1 parent 7bdeaff commit 7ce8078

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.cargo/config.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ rustflags = [
99
"-C", "link-arg=-undefined",
1010
"-C", "link-arg=dynamic_lookup",
1111
]
12+
13+
[target.wasm32-unknown-emscripten]
14+
rustflags = [
15+
"-C", "target-feature=+atomics,+bulk-memory,+mutable-globals",
16+
"-C", "link-arg=-s", "-C", "link-arg=ALLOW_MEMORY_GROWTH=1",
17+
"-C", "link-arg=-s", "-C", "link-arg=MODULARIZE=1",
18+
"-C", "link-arg=-s", "-C", "link-arg=EXPORT_NAME=createModule",
19+
"-C", "link-arg=-s", "-C", "link-arg=EXPORT_ES6=1",
20+
"-C", "link-arg=-s", "-C", "link-arg=ASSERTIONS=1"
21+
]

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ default-features = false
7575
features = ["multi_thread"]
7676

7777
[profile.release]
78-
lto = 'fat'
78+
lto = "fat"
7979
codegen-units = 1

0 commit comments

Comments
 (0)