named-lock icon indicating copy to clipboard operation
named-lock copied to clipboard

`parking_lot` `send_guard` feature prevents projects using the `deadlock_detection` feature downstream

Open zakstucke opened this issue 8 months ago • 1 comments

Thanks for a great library!

#9 enabled the send_guard feature of parking_lot. This feature is mutually exclusive with the deadlock_detection feature:

/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parking_lot-0.12.3/src/lib.rs:35:1
compile_error!("the `send_guard` and `deadlock_detection` features cannot be used together");

Because of this, any project wanting to use deadlock_detection, cannot use named-lock, mutually exclusive features should only be enabled by the end user, to prevent either or situations like this.

I'm stuck on 0.3 because of this at the moment, just tried to migrate to 0.4.

zakstucke avatar Apr 20 '25 22:04 zakstucke

Thanks for the report. I'm trying to figure out a way of solving this without breaking compatibility.

oblique avatar May 07 '25 08:05 oblique