[package]
edition = "2024"
name = "lite-sync"
version = "0.2.4"
authors = ["ShaoG <shaog.rs@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, lightweight async primitives: SPSC channel, oneshot, notify, and atomic waker"
homepage = "https://github.com/ShaoG-R/lite-sync"
documentation = "https://docs.rs/lite-sync"
readme = "README.md"
keywords = [
"async",
"spsc",
"channel",
"oneshot",
"performance",
]
categories = [
"asynchronous",
"concurrency",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ShaoG-R/lite-sync"
[features]
alloc = []
default = [
"std",
"alloc",
"spsc",
]
loom = [
"dep:loom",
"smallring?/loom",
]
spsc = [
"dep:smallring",
"alloc",
]
std = []
[lib]
name = "lite_sync"
path = "src/lib.rs"
[[test]]
name = "atomic_waker"
path = "tests/atomic_waker.rs"
[[test]]
name = "notify"
path = "tests/notify.rs"
[[test]]
name = "spsc"
path = "tests/spsc.rs"
[[bench]]
name = "notify_benchmark"
path = "benches/notify_benchmark.rs"
harness = false
[[bench]]
name = "oneshot_generic_benchmark"
path = "benches/oneshot_generic_benchmark.rs"
harness = false
[[bench]]
name = "oneshot_lite_benchmark"
path = "benches/oneshot_lite_benchmark.rs"
harness = false
[[bench]]
name = "spsc_benchmark"
path = "benches/spsc_benchmark.rs"
harness = false
[dependencies.loom]
version = "0.7.2"
features = ["futures"]
optional = true
[dependencies.smallring]
version = "=0.2.2"
optional = true
[dev-dependencies.criterion]
version = "0.7.0"
features = ["async_tokio"]
[dev-dependencies.futures]
version = "0.3.31"
[dev-dependencies.tokio]
version = "1.48.0"
features = ["full"]
[dev-dependencies.tokio-test]
version = "0.4.4"