[package]
edition = "2024"
rust-version = "1.85.0"
name = "unsync"
version = "0.2.0"
authors = ["John-John Tedro <udoprog@tedro.se>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unsynchronized synchronization primitives for async Rust."
homepage = "https://github.com/udoprog/unsync"
documentation = "https://docs.rs/unsync"
readme = "README.md"
keywords = [
"async",
"futures",
"io",
"non-blocking",
]
categories = ["asynchronous"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/udoprog/unsync"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = ["dep:slab"]
default = [
"std",
"alloc",
]
std = []
[lib]
name = "unsync"
path = "src/lib.rs"
[[test]]
name = "broadcast"
path = "tests/broadcast.rs"
[[test]]
name = "oneshot"
path = "tests/oneshot.rs"
[[test]]
name = "spsc"
path = "tests/spsc.rs"
[[bench]]
name = "channels"
path = "benches/channels.rs"
harness = false
[dependencies.slab]
version = "0.4.8"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.4.0"
[dev-dependencies.tokio]
version = "1.27.0"
features = [
"macros",
"rt",
"sync",
]