This repository was archived by the owner on Nov 24, 2025. It is now read-only.
feat: Add support for futures::Stream #186
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| name: test ${{ matrix.rust }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 3 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| rust: | |
| - 1.89 | |
| - 1.90 | |
| - stable | |
| - nightly | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: ${{ matrix.rust }} | |
| - uses: taiki-e/install-action@cargo-audit | |
| if: matrix.rust == 'stable' | |
| - name: Check no features | |
| run: | | |
| cargo check | |
| - name: Check all features | |
| run: | | |
| cargo check --all-features | |
| - name: Check no features | |
| run: | | |
| cargo check | |
| - name: Check channels-console feature | |
| run: | | |
| cargo check --features channels-console | |
| - name: Fmt | |
| if: matrix.rust == 'stable' | |
| run: | | |
| cargo fmt --all --check | |
| - name: Lint (default features) | |
| if: matrix.rust == 'stable' | |
| run: | | |
| cargo clippy --all -- -D warnings | |
| - name: Lint (channels-console feature) | |
| if: matrix.rust == 'stable' | |
| run: | | |
| cargo clippy --all --features channels-console -- -D warnings | |
| - name: Lint (all features) | |
| if: matrix.rust == 'stable' | |
| run: | | |
| cargo clippy --all --all-features -- -D warnings | |
| - name: Audit | |
| if: matrix.rust == 'stable' | |
| run: | | |
| cargo audit --ignore RUSTSEC-2023-0071 | |
| - name: Run doc tests | |
| run: | | |
| cargo test --doc --features='tokio,futures,channels-console' -p channels-console | |
| - name: Run lib tests | |
| run: | | |
| cargo test --lib --features channels-console | |
| - name: Run std integration tests | |
| run: | | |
| cargo test --test cli_tests_std -- --nocapture --test-threads=1 | |
| - name: Run tokio integration tests | |
| run: | | |
| cargo test --test cli_tests_tokio -- --nocapture --test-threads=1 | |
| - name: Run futures integration tests | |
| run: | | |
| cargo test --test cli_tests_futures -- --nocapture --test-threads=1 |