[package]
edition = "2021"
rust-version = "1.63"
name = "latches"
version = "0.2.0"
description = "A downward counter (CountDownLatch) which can be used to synchronize threads or coordinate tasks"
readme = "README.md"
keywords = [
"latch",
"countdownlatch",
"asynchronous",
"concurrency",
"synchronization",
]
categories = [
"asynchronous",
"concurrency",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mirromutth/latches"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[dependencies.atomic-wait]
version = "1"
optional = true
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"time",
]
[features]
atomic-wait = ["dep:atomic-wait"]
default = [
"sync",
"atomic-wait",
]
futex = ["atomic-wait"]
std = []
sync = []
task = []