Skip to content

Commit

Permalink
Add sync primitives Notify and watch::channel
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhuw committed May 21, 2024
1 parent a381e9a commit 5c571aa
Show file tree
Hide file tree
Showing 9 changed files with 1,964 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[workspace]
resolver = "2"
members = ["asyncs-test"]
members = ["asyncs-test", "asyncs-sync"]

[workspace.package]
license = "Apache-2.0"
version = "0.2.1"
edition = "2021"
authors = ["Kezhu Wang <[email protected]>"]
homepage = "https://github.com/kezhuw/asyncs"
repository = "https://github.com/kezhuw/asyncs"
documentation = "https://docs.rs/asyncs"
Expand Down Expand Up @@ -37,8 +38,9 @@ spawns-compat = ["spawns-core/compat"]
[dependencies]
async-select = "0.2.0"
asyncs-test = { version = "0.2.1", path = "./asyncs-test", optional = true }
spawns = { version = "0.2.3", optional = true }
spawns-core = "1.1.0"
asyncs-sync = { version = "0.2.1", path = "./asyncs-sync" }
spawns = { version = "0.2.4", optional = true }
spawns-core = "1.1.1"

[dev-dependencies]
test-case = "3.3.1"
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
verify: check build test
verify: check build-all test

check: check_fmt lint doc

Expand All @@ -12,10 +12,13 @@ lint:
cargo clippy --all-features --no-deps -- -D clippy::all

build:
cargo build --workspace --all-features

build-all:
cargo build-all-features

test:
cargo test --all-features
cargo test --workspace --all-features

doc:
cargo doc --all-features
17 changes: 17 additions & 0 deletions asyncs-sync/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "asyncs-sync"
description = "Asynchronous runtime agnostic synchronization utilities"
readme.workspace = true
authors.workspace = true
edition.workspace = true
version.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
documentation.workspace = true

[dependencies]

[dev-dependencies]
asyncs = { version = "0.2.1", path = "../", features = ["test"] }
futures = "0.3.30"
7 changes: 7 additions & 0 deletions asyncs-sync/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//! Utilities to synchronize among asynchronous tasks

mod notify;
mod parker;
pub mod watch;

pub use notify::*;
Loading

0 comments on commit 5c571aa

Please sign in to comment.