lite-sync 0.2.4

Fast, lightweight async primitives: SPSC channel, oneshot, notify, and atomic waker
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[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"