[package] name = "option-lock" version = "0.3.1" authors = ["Andrew Whitehead "] edition = "2018" description = "A simple mutex for Option values" license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/andrewwhitehead/option-lock-rs/" categories = ["concurrency", "data-structures", "no-std"] keywords = ["atomic", "once-cell", "option", "mutex", "lock"] [lib] name = "option_lock" path = "src/lib.rs" [features] default = ["std"] std = ["alloc"] alloc = [] bench = ["criterion"] [dependencies] # should be a dev-dependency, but we only want it when running benches # slows down builds the rest of the time criterion = { version = "0.3", optional = true } [[bench]] name = "contention" harness = false required-features = ["bench"] [[example]] name = "atomic-wake" [[example]] name = "sync-results" [[example]] name = "try-mutex"