From ce92cdb26190b7d0f0556a2cdf17c78d010345de Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:35:47 +1000 Subject: [PATCH 1/8] fix(ci): Enable --cfg async_compression_unstable dor mbrotli Ensure that all CIs has it enabled Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/workflows/base.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index c01e7fb2..f7921b32 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -2,6 +2,8 @@ name: base env: RUST_BACKTRACE: 1 + RUSTFLAGS: --cfg async_compression_unstable + RUSTDOCFLAGS: --cfg async_compression_unstable jobs: test: @@ -15,20 +17,6 @@ jobs: - run: cargo --locked nextest run --workspace --all-features - run: cargo --locked test --workspace --doc --all-features - test-unstable: - name: cargo test --cfg async_compression_unstable - runs-on: ubuntu-latest - env: - RUSTFLAGS: --cfg async_compression_unstable - RUSTDOCFLAGS: --cfg async_compression_unstable - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 - - uses: taiki-e/install-action@6a1bd70eaac3c8bdf093356838d7ee09fda951cf # v2.85.5 - with: { tool: cargo-nextest } - - run: cargo --locked nextest run --workspace --all-features - - run: cargo --locked test --workspace --doc --all-features - on: push: branches: [main] From ef031a85c248669c195bf16d3f8d7b22d7549303 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:36:58 +1000 Subject: [PATCH 2/8] Configure Rust flags for async compression Add RUSTFLAGS and RUSTDOCFLAGS for async compression Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/workflows/exhaustive.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/exhaustive.yml b/.github/workflows/exhaustive.yml index a0dc9daa..f844b7bd 100644 --- a/.github/workflows/exhaustive.yml +++ b/.github/workflows/exhaustive.yml @@ -2,6 +2,8 @@ name: exhaustive env: RUST_BACKTRACE: 1 + RUSTFLAGS: --cfg async_compression_unstable + RUSTDOCFLAGS: --cfg async_compression_unstable jobs: test: From ceef52e6fe3d815d6be934233ff7af171f06004a Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:37:38 +1000 Subject: [PATCH 3/8] Add RUSTFLAGS and RUSTDOCFLAGS for linting Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/workflows/lint.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 138fd137..a2dc6f72 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,8 @@ name: lint env: RUST_BACKTRACE: 1 + RUSTFLAGS: --cfg async_compression_unstable + RUSTDOCFLAGS: --cfg async_compression_unstable jobs: fmt: @@ -21,9 +23,6 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 with: { components: clippy } - run: cargo --locked clippy --no-deps --all --all-targets --all-features -- -D warnings - - run: cargo --locked clippy --no-deps --all --all-targets --all-features -- -D warnings - env: - RUSTFLAGS: --cfg async_compression_unstable on: push: From 51343bebcacb9ef6adb05e1bcc374c5009294b52 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:38:09 +1000 Subject: [PATCH 4/8] Add RUSTFLAGS and RUSTDOCFLAGS for async compression Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/workflows/nightly.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 6c7ad9cc..bad878d5 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -2,6 +2,8 @@ name: nightly env: RUST_BACKTRACE: 1 + RUSTFLAGS: --cfg async_compression_unstable + RUSTDOCFLAGS: --cfg async_compression_unstable jobs: test: From 8d22c023b2846c8121ce940c0bd1e5590db302e1 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:38:37 +1000 Subject: [PATCH 5/8] Set RUSTFLAGS and RUSTDOCFLAGS for async compression Add environment variables for Rust flags in release workflow Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed25c447..33b993f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,10 @@ permissions: contents: write id-token: write +env: + RUSTFLAGS: --cfg async_compression_unstable + RUSTDOCFLAGS: --cfg async_compression_unstable + on: push: branches: From e5b4847891c3048f0af49475a7843d57b6300232 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:39:32 +1000 Subject: [PATCH 6/8] Add RUSTFLAGS and RUSTDOCFLAGS for async compression Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/workflows/wasi.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wasi.yml b/.github/workflows/wasi.yml index 61ecd4b6..ce9ecbdc 100644 --- a/.github/workflows/wasi.yml +++ b/.github/workflows/wasi.yml @@ -2,6 +2,8 @@ name: wasi env: RUST_BACKTRACE: 1 + RUSTFLAGS: --cfg async_compression_unstable + RUSTDOCFLAGS: --cfg async_compression_unstable jobs: build: @@ -21,7 +23,7 @@ jobs: mkdir -p wasi-sysroot tar xf wasi-sysroot-*.tar.gz --strip-components=1 -C wasi-sysroot - run: | - cargo +nightly check --lib --features all-implementations,brotli,bzip2,deflate,gzip,lz4,lzma,xz,zlib,zstd,deflate64 --target wasm32-wasip1-threads + cargo +nightly check --lib --features all-implementations,brotli,mbrotli,bzip2,deflate,gzip,lz4,lzma,xz,zlib,zstd,deflate64 --target wasm32-wasip1-threads env: CFLAGS_wasm32_wasip1_threads: --sysroot=${{ github.workspace }}/wasi-sysroot -I${{ github.workspace }}/wasi-sysroot/include/wasm32-wasip1-threads -L-I${{ github.workspace }}/wasi-sysroot/lib/wasm32-wasip1-threads From 560490868a08620455860d5abcf319aeb787736d Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:42:17 +1000 Subject: [PATCH 7/8] Add RUSTFLAGS and RUSTDOCFLAGS to justfile Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- justfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 756131c4..59ea4c4a 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,6 @@ +export RUSTFLAGS := "--cfg async_compression_unstable" +export RUSTDOCFLAGS := RUSTFLAGS + "--cfg=docsrs -Dwarnings" + _list: @just --list @@ -19,7 +22,7 @@ clippy: # Document crates in workspace. doc *args: - RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --workspace --all-features {{ args }} + cargo +nightly doc --workspace --all-features {{ args }} # Checks feature combinations for `tokio|futures-io` async runtime. check-features async_runtime: From ae255006e7fc706344a2e27018913bcfdb259be3 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 30 Sep 2026 01:05:31 +1000 Subject: [PATCH 8/8] Fix typo in cargo check features for WASI Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- .github/workflows/wasi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wasi.yml b/.github/workflows/wasi.yml index ce9ecbdc..59213b98 100644 --- a/.github/workflows/wasi.yml +++ b/.github/workflows/wasi.yml @@ -23,7 +23,7 @@ jobs: mkdir -p wasi-sysroot tar xf wasi-sysroot-*.tar.gz --strip-components=1 -C wasi-sysroot - run: | - cargo +nightly check --lib --features all-implementations,brotli,mbrotli,bzip2,deflate,gzip,lz4,lzma,xz,zlib,zstd,deflate64 --target wasm32-wasip1-threads + cargo +nightly check --lib --features all-implementations,brotli,brotli-mbrotli,bzip2,deflate,gzip,lz4,lzma,xz,zlib,zstd,deflate64 --target wasm32-wasip1-threads env: CFLAGS_wasm32_wasip1_threads: --sysroot=${{ github.workspace }}/wasi-sysroot -I${{ github.workspace }}/wasi-sysroot/include/wasm32-wasip1-threads -L-I${{ github.workspace }}/wasi-sysroot/lib/wasm32-wasip1-threads