# 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 = "synchrony"
version = "0.1.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library that provides both sync and unsync versions of common synchronization primitives."
readme = "README.md"
license = "MIT"
repository = "https://github.com/compio-rs/synchrony"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
async_flag = ["waker_slot"]
bilock = ["waker_slot"]
event = [
    "dep:event-listener",
    "dep:local-event",
]
mutex = ["dep:slab"]
waker_slot = ["dep:futures-util"]
watch = ["dep:see"]

[lib]
name = "synchrony"
path = "src/lib.rs"

[dependencies.event-listener]
version = "5.4.1"
optional = true
default-features = false

[dependencies.futures-util]
version = "0.3.31"
optional = true
default-features = false

[dependencies.local-event]
version = "0.1.1"
optional = true
default-features = false

[dependencies.see]
version = "0.1.1"
optional = true

[dependencies.slab]
version = "0.4.11"
optional = true

[dev-dependencies.futures]
version = "0.3.31"
features = ["executor"]
