diff --git a/Cargo.toml b/Cargo.toml index 2dfcaac..5f6d253 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libfreemkv" -version = "0.8.1" +version = "0.8.2" edition = "2021" license = "AGPL-3.0-only" description = "Open source raw disc access library for optical drives" diff --git a/src/scsi/macos.rs b/src/scsi/macos.rs index 3a202ee..5c38e5e 100644 --- a/src/scsi/macos.rs +++ b/src/scsi/macos.rs @@ -168,6 +168,9 @@ pub struct MacScsiTransport { exclusive: bool, } +// IOKit COM interface pointers are Mach port references — safe to send between threads. +unsafe impl Send for MacScsiTransport {} + impl MacScsiTransport { pub fn open(device: &Path) -> Result { let dev_str = device.to_str().ok_or_else(|| Error::DeviceNotFound {