Skip to content

Commit

Permalink
Increase the wasm stack size to 8MB just because we can
Browse files Browse the repository at this point in the history
Wasn't actually necessary to solve
#78
But nevertheless.
  • Loading branch information
cormacrelf committed Dec 1, 2020
1 parent 5ad2a6e commit 7c41ba2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/wasm/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ opt-level = "z" # otherwise the wasm binaries are too big to load quickly

[profile.release]
debug = 1

# hardening for https://github.com/cormacrelf/citeproc-rs/issues/78
[target.wasm32-unknown-unknown]
rustflags = [
"-C", "link-args=-z stack-size=8388608", # 8 * 1048576 B = 8 MB
]

0 comments on commit 7c41ba2

Please sign in to comment.