From aed4d21ef6fde190368b504fc52907a2d3f6e67c Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Sat, 15 Jul 2023 11:21:04 -0400 Subject: [PATCH] compile options for wasm performance --- js/.cargo/config.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 js/.cargo/config.toml diff --git a/js/.cargo/config.toml b/js/.cargo/config.toml new file mode 100644 index 000000000..ecdd15660 --- /dev/null +++ b/js/.cargo/config.toml @@ -0,0 +1,13 @@ +[target.wasm32-unknown-unknown] +rustflags = [ + "-C", + "target-feature=+atomics,+bulk-memory,+mutable-globals", + "-C", + "link-arg=--max-memory=4294967296", +] + +[unstable] +build-std = ["panic_abort", "std"] + +[build] +target = "wasm32-unknown-unknown"