Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 949b856

Browse files
authored
Merge pull request #1035 from MutinyWallet/increase-wasm-memory
Increase wasm memory limit to 3mb
2 parents 18fb63c + 6aca3a0 commit 949b856

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.cargo/config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@
22
target = "wasm32-unknown-unknown"
33
# for fedimint to use tokio::task::Builder - https://github.com/fedimint/fedimint/issues/3951
44
rustflags = ["--cfg", "tokio_unstable"]
5+
6+
[target.wasm32-unknown-unknown]
7+
# Increase the stack size to 3MB, the default is 1MB
8+
# This is to prevent index out of bounds panics in the wasm code while running.
9+
rustflags = [
10+
"-C", "link-args=-z stack-size=3000000",
11+
]

0 commit comments

Comments
 (0)