[package]
edition = "2021"
rust-version = "1.65"
name = "borrow_mutex"
version = "0.1.2"
authors = ["Darek Stojaczyk <darek@stojaczyk.pl>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Async Rust Mutex which does not require wrapping the target structure
"""
readme = "README.md"
keywords = [
"mutex",
"lock",
"async",
"no_std",
]
categories = [
"asynchronous",
"rust-patterns",
"no-std::no-alloc",
]
license = "MIT"
repository = "https://github.com/darsto/borrow_mutex"
[features]
default = ["std"]
std = []
[lib]
name = "borrow_mutex"
path = "src/lib.rs"
[[test]]
name = "abort"
path = "tests/abort.rs"
[[test]]
name = "borrow_basic"
path = "tests/borrow_basic.rs"
[[test]]
name = "borrow_basic_mt"
path = "tests/borrow_basic_mt.rs"
[[test]]
name = "borrow_basic_mt_smol"
path = "tests/borrow_basic_mt_smol.rs"
[[test]]
name = "borrow_corner_cases"
path = "tests/borrow_corner_cases.rs"
[[test]]
name = "borrow_dyn"
path = "tests/borrow_dyn.rs"
[[test]]
name = "mpmc_spam"
path = "tests/mpmc_spam.rs"
[[bench]]
name = "mutex"
path = "benches/mutex.rs"
harness = false
[dependencies]
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.futures-timer]
version = "3.0"
[dev-dependencies.smol]
version = "1.3"
[dev-dependencies.tokio]
version = "1.38"
features = [
"rt",
"sync",
]