-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 35bb97e
Showing
9 changed files
with
725 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: CI | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Rust ${{matrix.rust}} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rust: [nightly, beta, stable] | ||
timeout-minutes: 45 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{matrix.rust}} | ||
components: rust-src | ||
- run: cargo test --all-features | ||
|
||
clippy: | ||
name: Clippy | ||
runs-on: ubuntu-latest | ||
if: github.event_name != 'pull_request' | ||
timeout-minutes: 45 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: clippy, rust-src | ||
- run: cargo clippy | ||
|
||
miri: | ||
name: Miri | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 45 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@miri | ||
with: | ||
toolchain: nightly | ||
- run: cargo miri setup | ||
- run: cargo miri test |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "async-waitgroup" | ||
description = "Golang like WaitGroup implementation that supports both sync and async Rust" | ||
version = "0.1.0" | ||
authors = ["Shaolong Chen <shaolong.chen@outlook.it>"] | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/maolonglong/async-waitgroup" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
event-listener = { version = "4.0.0", default-features = false } | ||
event-listener-strategy = { version = "0.4.0", default-features = false } | ||
futures-core = { version = "0.3.5", default-features = false } | ||
pin-project-lite = "0.2.11" | ||
|
||
[dev-dependencies] | ||
tokio = { version = "1.35.1", features = ["rt", "macros"] } | ||
|
||
[features] | ||
default = ["std"] | ||
std = ["event-listener/std", "event-listener-strategy/std"] |
Oops, something went wrong.