Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use both async-channel and futures channels via feature flags #48

Merged
merged 5 commits into from
Jul 18, 2023
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
47 changes: 46 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,30 @@ jobs:
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --all-targets --all-features --workspace
args: --all-targets --workspace

build-futures:
name: Cargo check futures channel
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0

- name: Build
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --no-default-features --features futures_channel --manifest-path metered-channel/Cargo.toml

fmt:
name: Cargo fmt
Expand Down Expand Up @@ -85,6 +108,28 @@ jobs:
with:
command: test
args: --all-targets --workspace
tests-futures:
name: Cargo test with futures
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0

- name: Cargo test
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --no-default-features --features futures_channel --manifest-path metered-channel/Cargo.toml

clippy:
name: Cargo clippy
Expand Down
Loading