Skip to content

Commit

Permalink
fix: make wasm happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Chronostasys committed Oct 25, 2024
1 parent 268bbe7 commit 7afd45c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[target.wasm32-unknown-unknown]
# Increase the stack size to 8MB, the default is 1MB
# This is to prevent stack overflow panics in the wasm code while running.
rustflags = [
"-C", "link-args=-z stack-size=8000000",
]
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ shlex = { version = "1.3.0", optional = true }
notify = { version = "6.1.1", optional = true }
ustr = {version = "1.0.0", features = ["serde"]}
getrandom = {version = "0.2.15", features = ["js"]}
instant = {version = "0.1", features = ["wasm-bindgen"]}

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
Expand Down

0 comments on commit 7afd45c

Please sign in to comment.