Skip to content

Commit

Permalink
cleanup features
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Sep 30, 2023
1 parent aaae3c5 commit 37d35f9
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 430 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ jobs:
run: rustup update stable --no-self-update && rustup default stable
- name: Test
run: cargo test --no-default-features --features async
sync:
name: sync
full:
name: full
strategy:
matrix:
os:
Expand All @@ -103,14 +103,14 @@ jobs:
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
run: rustup update stable --no-self-update && rustup default stable
- name: Test
run: cargo test --no-default-features --features sync
run: cargo test --no-default-features --features full

coverage:
name: cargo tarpaulin
runs-on: ubuntu-latest
needs:
- async
- sync
- full
- build
- clippy
- rustfmt
Expand Down
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ categories = ["asynchronous", "concurrency", "data-structures"]
edition = "2021"

[features]
default = ["full"]
full = ["sync", "async"]
sync = ["parking_lot", "triomphe"]
async = ["atomic-waker", "triomphe"]
default = []
full = ["async", "triomphe", "parking_lot"]
async = ["atomic-waker"]
triomphe = ["dep:triomphe"]
parking_lot = ["dep:parking_lot"]

Expand Down
2 changes: 1 addition & 1 deletion examples/wg.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@

fn main() {}
Loading

0 comments on commit 37d35f9

Please sign in to comment.