Fix Rust-Analyzer conflicts with build targets and other compile speed issues

This commit is contained in:
Keavon Chambers
2024-07-15 15:55:04 -07:00
parent 212f08c6c8
commit 857bc772de
4 changed files with 40 additions and 37 deletions
+13 -21
View File
@@ -93,30 +93,22 @@ kurbo = { git = "https://github.com/linebender/kurbo.git", features = [
"serde",
] }
[profile.dev.package.graphite-editor]
opt-level = 1
[profile.dev.package.graphene-core]
opt-level = 1
[profile.dev.package.graphene-std]
opt-level = 1
[profile.dev.package.interpreted-executor]
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.autoquant]
opt-level = 3
[profile.dev.package.image]
opt-level = 3
[profile.dev.package.rustc-hash]
opt-level = 3
[profile.dev]
opt-level = 1
[profile.dev.package]
graphite-editor = { opt-level = 1 }
graphene-core = { opt-level = 1 }
graphene-std = { opt-level = 1 }
interpreted-executor = { 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
graphite-proc-macros = { opt-level = 3 }
autoquant = { opt-level = 3 }
image = { opt-level = 3 }
rustc-hash = { opt-level = 3 }
serde_derive = { opt-level = 3 }
specta-macros = { opt-level = 3 }
syn = { opt-level = 3 }
[profile.release]
lto = "thin"