Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

build: Reduce dev debug info level from full to limited (#56656)

Piotr Osiewicz048831a453af
diff --git a/Cargo.toml b/Cargo.toml
index a1fbe8a7f43..a0135052e37 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -889,13 +889,22 @@ webrtc-sys = { git = "https://github.com/zed-industries/livekit-rust-sdks", rev
split-debuginfo = "unpacked"
incremental = true
codegen-units = 16
+debug = "limited"
# mirror configuration for crates compiled for the build platform
# (without this cargo will compile ~400 crates twice)
[profile.dev.build-override]
codegen-units = 16
split-debuginfo = "unpacked"
-debug = true
+debug = "limited"
+
+# "debug" is a reserved profile name.
+[profile.dbg]
+inherits = "dev"
+debug = "full"
+
+[profile.dbg.build-override]
+debug = "full"
[profile.dev.package]
# proc-macros start