From a321f87db681b3007ce77de4f959c573b30f19ef Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 21 Mar 2026 15:04:38 -0400 Subject: [PATCH] build: add tokio_unstable and codegen-units to cargo config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit console-subscriber (used by jobkit's console feature) requires tokio to be built with --cfg tokio_unstable. Move this and codegen-units=6 from RUSTFLAGS env var to .cargo/config.toml so per-project cargo config actually works (env var RUSTFLAGS overrides config.toml). Also remove invalid frame-pointer keys from Cargo.toml profile sections — frame pointers are already handled via -Cforce-frame-pointers in the config.toml rustflags. Co-Authored-By: Claude Opus 4.6 (1M context) --- .cargo/config.toml | 2 +- Cargo.toml | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 9900160..78c66c5 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,2 @@ [build] -rustflags = ["-Cforce-frame-pointers=yes"] +rustflags = ["-Cforce-frame-pointers=yes", "-Ccodegen-units=6", "--cfg", "tokio_unstable"] diff --git a/Cargo.toml b/Cargo.toml index fa3f068..c11bcc9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,8 +9,6 @@ edition = "2024" [profile.release] opt-level = 2 debug = 1 -frame-pointer = "always" [profile.release.package."*"] debug = false -frame-pointer = "always"