From 65840b3633e873ae0757deefbfa29af7902a62c9 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 1 Apr 2024 11:56:17 -0400 Subject: [PATCH] Hoist `profile.dev.package` setting to workspace-level (#10041) This PR hoists the `profile.dev.package` settings for compiling the `resvg` crate with optimizations up to the workspace level, since Cargo was complaining: ``` warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /Users/maxdeviant/projects/zed/crates/gpui/Cargo.toml workspace: /Users/maxdeviant/projects/zed/Cargo.toml ``` Release Notes: - N/A --- Cargo.toml | 1 + crates/gpui/Cargo.toml | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6f35a6b41a..be0f7f54f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -394,6 +394,7 @@ debug = "limited" [profile.dev.package] taffy = { opt-level = 3 } cranelift-codegen = { opt-level = 3 } +resvg = { opt-level = 3 } rustybuzz = { opt-level = 3 } ttf-parser = { opt-level = 3 } wasmtime-cranelift = { opt-level = 3 } diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml index 2cf569d35c..d27f9a353d 100644 --- a/crates/gpui/Cargo.toml +++ b/crates/gpui/Cargo.toml @@ -72,9 +72,6 @@ util.workspace = true uuid = { version = "1.1.2", features = ["v4", "v5"] } waker-fn = "1.1.0" -[profile.dev.package] -resvg = { opt-level = 3 } - [dev-dependencies] backtrace = "0.3" collections = { workspace = true, features = ["test-support"] }