From 08a736c3e4f6cd67a27295a288acaede6a13593c Mon Sep 17 00:00:00 2001 From: John Baublitz Date: Wed, 27 May 2026 16:18:46 -0400 Subject: [PATCH] Make note of work on thread safety --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 1743d212..96df3db1 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,11 @@ contains a pointer is *not* safe to send across threads. Providing an `unsafe impl Send {}` for any data structure provided by libcryptsetup-rs that is not `Send` may result in undefined behavior. +There is an active effort as of 2026 to make crypsetup and libdevmapper (the +thread-unsafe dependency) thread-safe. Once this is merged and released, we will +be able to remove this workaround for newer versions. However on older versions, +this restriction will remain in place. + ### Building The libcryptsetup bindings require some dependencies outside of cargo to build