From be3d6d25b971616c73723151ac807180dcde6009 Mon Sep 17 00:00:00 2001 From: R57 Date: Mon, 7 Sep 2026 00:52:06 +0200 Subject: [PATCH] build: add --cfg tokio_unstable to cargo rustflags console-subscriber::init() (called unconditionally in rog-control-center/src/main.rs) panics at startup when Tokio is not compiled with --cfg tokio_unstable: task tracing requires Tokio to be built with RUSTFLAGS="--cfg tokio_unstable"! The flag is not committed anywhere in the repo (.cargo/config.toml, Makefile, distro-packaging/PKGBUILD and the workflows all omit it), so every build of the release tarball without a special RUSTFLAGS env produces a GUI that aborts immediately on launch (SIGABRT). Reproduced with the official Arch Linux package and the project's own release.yml build path. Committing the flag in .cargo/config.toml makes every Cargo build (including distro builds from the source tarball) compile with it by default. Co-authored-by: AnthraCode <288609694+anthracode@users.noreply.github.com> --- .cargo/config.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index bdfe9ff7..bcbda9c4 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,4 +3,10 @@ # semver-compatible versions, some of which require a newer rustc and fail # to build. [resolver] -incompatible-rust-versions = "fallback" \ No newline at end of file +incompatible-rust-versions = "fallback" + +# Required by console-subscriber (used in rog-control-center): its startup +# check panics unless Tokio was compiled with this cfg. Commit it so every +# build (including distro builds from the release tarball) gets it by default. +[build] +rustflags = ["--cfg", "tokio_unstable"] \ No newline at end of file