Skip to content

Commit 27b5bc0

Browse files
committed
Regenerate Rust 1.81 compatible bindings.
‘unsafe extern’ wasn’t supported until Rust 1.82.
1 parent 2a9968b commit 27b5bc0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/bindings/crc32_iscsi.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.70.1 */
22

3-
unsafe extern "C" {
3+
extern "C" {
44
pub static ISCSI_TARGET: *const ::std::os::raw::c_char;
55
}
6-
unsafe extern "C" {
6+
extern "C" {
77
#[doc = " Gets the target build properties (CPU architecture and fine-tuning parameters) for this implementation."]
88
pub fn get_iscsi_target() -> *const ::std::os::raw::c_char;
99
}
10-
unsafe extern "C" {
10+
extern "C" {
1111
#[doc = " Calculate CRC-32/ISCSI checksum using hardware acceleration\n\n @param crc0 Initial CRC value (typically 0)\n @param buf Pointer to input data buffer\n @param len Length of input data in bytes\n\n @return Calculated CRC-32/ISCSI checksum"]
1212
pub fn crc32_iscsi_impl(crc0: u32, buf: *const ::std::os::raw::c_char, len: usize) -> u32;
1313
}

src/bindings/crc32_iso_hdlc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
/* automatically generated by rust-bindgen 0.71.1 */
1+
/* automatically generated by rust-bindgen 0.70.1 */
22

3-
unsafe extern "C" {
3+
extern "C" {
44
pub static ISO_HDLC_TARGET: *const ::std::os::raw::c_char;
55
}
6-
unsafe extern "C" {
6+
extern "C" {
77
#[doc = " Gets the target build properties (CPU architecture and fine-tuning parameters) for this implementation."]
88
pub fn get_iso_hdlc_target() -> *const ::std::os::raw::c_char;
99
}
10-
unsafe extern "C" {
10+
extern "C" {
1111
#[doc = " Calculate CRC-32/ISO_HDLC checksum using hardware acceleration\n\n @param crc0 Initial CRC value (typically 0)\n @param buf Pointer to input data buffer\n @param len Length of input data in bytes\n\n @return Calculated CRC-32/ISO_HDLC checksum"]
1212
pub fn crc32_iso_hdlc_impl(crc0: u32, buf: *const ::std::os::raw::c_char, len: usize) -> u32;
1313
}

0 commit comments

Comments
 (0)