Skip to content

Commit c55d479

Browse files
authored
Update bindgen and remove tempdir (#131)
1 parent 91357b1 commit c55d479

272 files changed

Lines changed: 310 additions & 311 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

gen/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ edition = "2021"
55
publish = false
66

77
[dependencies]
8-
bindgen = { version = "=0.66.1", default-features = false, features = ["which-rustfmt"] }
9-
tempdir = "0.3.7"
8+
bindgen = { version = "0.70.1", default-features = false }
9+
tempfile = "3.12.0"

gen/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn main() {
2626

2727
git_init();
2828

29-
let out = tempdir::TempDir::new("linux-raw-sys").unwrap();
29+
let out = tempfile::TempDir::with_prefix("linux-raw-sys").unwrap();
3030
let out_dir = out.path();
3131
let linux_headers = out_dir.join("linux-headers");
3232
let linux_include = linux_headers.join("include");
@@ -291,8 +291,7 @@ fn rust_arches(linux_arch: &str) -> &[&str] {
291291
"x86" => &["x86", "x86_64", "x32"],
292292
"alpha" | "cris" | "h8300" | "m68k" | "microblaze" | "mn10300" | "score" | "blackfin"
293293
| "frv" | "ia64" | "m32r" | "m68knommu" | "parisc" | "sh" | "um" | "xtensa"
294-
| "unicore32" | "c6x" | "nios2" | "openrisc" | "arc" | "nds32" | "metag"
295-
| "tile" => &[],
294+
| "unicore32" | "c6x" | "nios2" | "openrisc" | "arc" | "nds32" | "metag" | "tile" => &[],
296295
_ => panic!("unrecognized arch: {}", linux_arch),
297296
}
298297
}

src/aarch64/bootparam.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
/* automatically generated by rust-bindgen 0.66.1 */
1+
/* automatically generated by rust-bindgen 0.70.1 */
22

33

src/aarch64/errno.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.66.1 */
1+
/* automatically generated by rust-bindgen 0.70.1 */
22

33
pub const EPERM: u32 = 1;
44
pub const ENOENT: u32 = 2;

src/aarch64/general.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.66.1 */
1+
/* automatically generated by rust-bindgen 0.70.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/aarch64/if_arp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.66.1 */
1+
/* automatically generated by rust-bindgen 0.70.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/aarch64/if_ether.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.66.1 */
1+
/* automatically generated by rust-bindgen 0.70.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/aarch64/if_packet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.66.1 */
1+
/* automatically generated by rust-bindgen 0.70.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/aarch64/io_uring.rs

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

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;
@@ -1187,7 +1187,7 @@ Self::new()
11871187
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
11881188
#[inline]
11891189
fn clone(&self) -> Self {
1190-
Self::new()
1190+
*self
11911191
}
11921192
}
11931193
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}

src/aarch64/ioctl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.66.1 */
1+
/* automatically generated by rust-bindgen 0.70.1 */
22

33
pub const FIONREAD: u32 = 21531;
44
pub const FIONBIO: u32 = 21537;

0 commit comments

Comments
 (0)