Rust wrapper: add comment to MlKem about not implementing Send/Sync

Fixes F-1072.
This commit is contained in:
Josh Holtrop
2026-03-27 15:27:46 -04:00
parent 85ad08a50a
commit 10fbc95241
@@ -73,6 +73,10 @@ use zeroize::Zeroize;
///
/// An instance is created with [`MlKem::generate()`],
/// [`MlKem::generate_with_random()`], or [`MlKem::new()`].
///
/// This struct does not implement Send or Sync because it is not safe in the
/// general case to access the underlying C API from multiple threads
/// concurrently.
pub struct MlKem {
ws_key: *mut sys::MlKemKey,
}