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

Increase wasm memory limit to 3mb #1035

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
target = "wasm32-unknown-unknown"
# for fedimint to use tokio::task::Builder - https://github.com/fedimint/fedimint/issues/3951
rustflags = ["--cfg", "tokio_unstable"]

[target.wasm32-unknown-unknown]
# Increase the stack size to 3MB, the default is 1MB
# This is to prevent index out of bounds panics in the wasm code while running.
rustflags = [
"-C", "link-args=-z stack-size=3000000",
]
Loading