From 0c42916fa9e280a06abb870b135cf81f5450e157 Mon Sep 17 00:00:00 2001 From: houseme Date: Wed, 25 Mar 2026 17:03:21 +0800 Subject: [PATCH] ci(build): enable tokio_unstable flag in Build RustFS job (#2289) --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf881e4d0..b3226e3a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -204,7 +204,11 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 60 env: - RUSTFLAGS: ${{ matrix.rustflags }} + # Always enable Tokio unstable features (required by dial9-tokio-telemetry). + # The RUSTFLAGS env var takes precedence over .cargo/config.toml [build] rustflags, + # so we must include --cfg tokio_unstable here explicitly; otherwise an empty + # RUSTFLAGS value would shadow the config-file flag and silently break tracing. + RUSTFLAGS: "--cfg tokio_unstable ${{ matrix.rustflags }}" strategy: fail-fast: false matrix: ${{ fromJson(needs.prepare-platform-matrix.outputs.matrix) }}