Minimal parking_lot support

This commit is contained in:
2021-05-27 21:04:49 +02:00
parent b21a63e74b
commit 73b4c8b1af
3 changed files with 64 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ repository = "https://github.com/bertptrs/tracing-mutex"
[dependencies]
lazy_static = "1"
lock_api = { version = "0.4", optional = true }
parking_lot = { version = "0.11", optional = true }
[dev-dependencies]
rand = "0.8"
@@ -21,3 +22,4 @@ rand = "0.8"
[features]
# Feature names do not match crate names pending namespaced features.
lockapi = ["lock_api"]
parkinglot = ["parking_lot", "lockapi"]