Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(rust): drop dependency debug info from dev builds (#128734)

Robbiead7d71fa3c7f
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 40967d48b4e2..a06d02b8d485 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -129,6 +129,15 @@ debug = "line-tables-only"
[profile.release.package.neon]
debug-assertions = true
+# Dependency debug info doubles the size of a dev target dir.
+[profile.dev]
+debug = "line-tables-only"
+
+[profile.dev.package."*"]
+debug = false
+# Cargo strips proc-macro dylibs when debug is off, and dyld rejects them after Apple ld-27106 links them.
+strip = false
+
# The stateright model checker exhaustively explores millions of protocol
# states; its hot loop (state hashing, BTreeMap clones) is ~11x slower
# unoptimized, which would put the exhaustive tests at ~25 minutes in