diff --git a/src/lib.rs b/src/lib.rs index b68ba69..f2a6f70 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -478,6 +478,7 @@ trait HidDeviceBackendBase { fn get_feature_report(&self, buf: &mut [u8]) -> HidResult; fn send_output_report(&self, data: &[u8]) -> HidResult<()>; fn get_input_report(&self, data: &mut [u8]) -> HidResult; + #[cfg(any(hidapi, target_os = "linux"))] fn set_blocking_mode(&self, blocking: bool) -> HidResult<()>; fn get_device_info(&self) -> HidResult; fn get_manufacturer_string(&self) -> HidResult>; @@ -621,6 +622,7 @@ impl HidDevice { /// /// If successful, returns the number of bytes read plus one for the report ID (which is still /// in the first byte). + #[cfg(any(hidapi, target_os = "linux"))] pub fn get_input_report(&self, data: &mut [u8]) -> HidResult { self.inner.get_input_report(data) }