Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: base

env:
RUST_BACKTRACE: 1
RUSTFLAGS: --cfg async_compression_unstable
RUSTDOCFLAGS: --cfg async_compression_unstable

jobs:
test:
Expand All @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/exhaustive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: exhaustive

env:
RUST_BACKTRACE: 1
RUSTFLAGS: --cfg async_compression_unstable
RUSTDOCFLAGS: --cfg async_compression_unstable

jobs:
test:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: lint

env:
RUST_BACKTRACE: 1
RUSTFLAGS: --cfg async_compression_unstable
RUSTDOCFLAGS: --cfg async_compression_unstable

jobs:
fmt:
Expand All @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: nightly

env:
RUST_BACKTRACE: 1
RUSTFLAGS: --cfg async_compression_unstable
RUSTDOCFLAGS: --cfg async_compression_unstable

jobs:
test:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ permissions:
contents: write
id-token: write

env:
RUSTFLAGS: --cfg async_compression_unstable
RUSTDOCFLAGS: --cfg async_compression_unstable

on:
push:
branches:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/wasi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: wasi

env:
RUST_BACKTRACE: 1
RUSTFLAGS: --cfg async_compression_unstable
RUSTDOCFLAGS: --cfg async_compression_unstable

jobs:
build:
Expand All @@ -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,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

Expand Down
5 changes: 4 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export RUSTFLAGS := "--cfg async_compression_unstable"
export RUSTDOCFLAGS := RUSTFLAGS + "--cfg=docsrs -Dwarnings"

_list:
@just --list

Expand All @@ -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:
Expand Down
Loading