From 00fd701f668d658e5b5a316db022143b144c53ac Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Mon, 24 Apr 2023 20:04:46 +0200 Subject: [PATCH] Enable optimization for the interpreted-executor crate Enables optimizations for `interpreted-executor` in debug mode to circumvent the wasm limit for the number of locals in a single function. Test Plan: Add entries to the node registry and verify that it does still compile Reviewers: Keavon Reviewed By: Keavon Pull Request: https://github.com/GraphiteEditor/Graphite/pull/1158 --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1dfc6eb2..0e159e3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,11 @@ xxhash-rust = { version = "0.8.4", features = ["xxh3"] } [profile.dev.package.graphite-editor] opt-level = 1 +# This is a mitigation for https://github.com/rustwasm/wasm-pack/issues/981 +# Which is needed because the node_registry function is too large +[profile.dev.package.interpreted-executor] +opt-level = 1 + [profile.dev.package.graphene-core] opt-level = 1