Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies for codegen #131

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"
publish = false

[dependencies]
bindgen = { version = "=0.66.1", default-features = false, features = ["which-rustfmt"] }
tempdir = "0.3.7"
bindgen = { version = "0.70.1", default-features = false }
tempfile = "3.12.0"
5 changes: 2 additions & 3 deletions gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn main() {

git_init();

let out = tempdir::TempDir::new("linux-raw-sys").unwrap();
let out = tempfile::TempDir::with_prefix("linux-raw-sys").unwrap();
let out_dir = out.path();
let linux_headers = out_dir.join("linux-headers");
let linux_include = linux_headers.join("include");
Expand Down Expand Up @@ -291,8 +291,7 @@ fn rust_arches(linux_arch: &str) -> &[&str] {
"x86" => &["x86", "x86_64", "x32"],
"alpha" | "cris" | "h8300" | "m68k" | "microblaze" | "mn10300" | "score" | "blackfin"
| "frv" | "ia64" | "m32r" | "m68knommu" | "parisc" | "sh" | "um" | "xtensa"
| "unicore32" | "c6x" | "nios2" | "openrisc" | "arc" | "nds32" | "metag"
| "tile" => &[],
| "unicore32" | "c6x" | "nios2" | "openrisc" | "arc" | "nds32" | "metag" | "tile" => &[],
_ => panic!("unrecognized arch: {}", linux_arch),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/bootparam.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */


2 changes: 1 addition & 1 deletion src/aarch64/errno.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/general.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/if_arp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/if_ether.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/if_packet.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
4 changes: 2 additions & 2 deletions src/aarch64/io_uring.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down Expand Up @@ -1187,7 +1187,7 @@ Self::new()
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
#[inline]
fn clone(&self) -> Self {
Self::new()
*self
}
}
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/ioctl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const FIONREAD: u32 = 21531;
pub const FIONBIO: u32 = 21537;
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/loop_device.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __kernel_old_uid_t = crate::ctypes::c_ushort;
pub type __kernel_old_gid_t = crate::ctypes::c_ushort;
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/mempolicy.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
Expand Down
4 changes: 2 additions & 2 deletions src/aarch64/net.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down Expand Up @@ -2252,7 +2252,7 @@ Self::new()
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
#[inline]
fn clone(&self) -> Self {
Self::new()
*self
}
}
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/netlink.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __kernel_sa_family_t = crate::ctypes::c_ushort;
pub type __s8 = crate::ctypes::c_schar;
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/prctl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/system.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/aarch64/xdp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/bootparam.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */


2 changes: 1 addition & 1 deletion src/arm/errno.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/general.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/if_arp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/if_ether.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/if_packet.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
4 changes: 2 additions & 2 deletions src/arm/io_uring.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down Expand Up @@ -1185,7 +1185,7 @@ Self::new()
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
#[inline]
fn clone(&self) -> Self {
Self::new()
*self
}
}
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
Expand Down
2 changes: 1 addition & 1 deletion src/arm/ioctl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const FIONREAD: u32 = 21531;
pub const FIONBIO: u32 = 21537;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/loop_device.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __kernel_mode_t = crate::ctypes::c_ushort;
pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/mempolicy.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
Expand Down
4 changes: 2 additions & 2 deletions src/arm/net.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down Expand Up @@ -2244,7 +2244,7 @@ Self::new()
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
#[inline]
fn clone(&self) -> Self {
Self::new()
*self
}
}
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
Expand Down
2 changes: 1 addition & 1 deletion src/arm/netlink.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __kernel_sa_family_t = crate::ctypes::c_ushort;
pub type __s8 = crate::ctypes::c_schar;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/prctl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/system.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/arm/xdp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/bootparam.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */


2 changes: 1 addition & 1 deletion src/csky/errno.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/general.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/if_arp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/if_ether.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/if_packet.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
4 changes: 2 additions & 2 deletions src/csky/io_uring.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down Expand Up @@ -1189,7 +1189,7 @@ Self::new()
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
#[inline]
fn clone(&self) -> Self {
Self::new()
*self
}
}
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
Expand Down
2 changes: 1 addition & 1 deletion src/csky/ioctl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const FIONREAD: u32 = 21531;
pub const FIONBIO: u32 = 21537;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/loop_device.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __kernel_long_t = crate::ctypes::c_long;
pub type __kernel_ulong_t = crate::ctypes::c_ulong;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/mempolicy.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
Expand Down
4 changes: 2 additions & 2 deletions src/csky/net.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down Expand Up @@ -2246,7 +2246,7 @@ Self::new()
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
#[inline]
fn clone(&self) -> Self {
Self::new()
*self
}
}
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
Expand Down
2 changes: 1 addition & 1 deletion src/csky/netlink.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __kernel_sa_family_t = crate::ctypes::c_ushort;
pub type __s8 = crate::ctypes::c_schar;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/prctl.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/system.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/csky/xdp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/loongarch64/bootparam.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */


2 changes: 1 addition & 1 deletion src/loongarch64/errno.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub const EPERM: u32 = 1;
pub const ENOENT: u32 = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/loongarch64/general.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/loongarch64/if_arp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/loongarch64/if_ether.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
2 changes: 1 addition & 1 deletion src/loongarch64/if_packet.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down
4 changes: 2 additions & 2 deletions src/loongarch64/io_uring.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.70.1 */

pub type __s8 = crate::ctypes::c_schar;
pub type __u8 = crate::ctypes::c_uchar;
Expand Down Expand Up @@ -1187,7 +1187,7 @@ Self::new()
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
#[inline]
fn clone(&self) -> Self {
Self::new()
*self
}
}
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
Expand Down
Loading
Loading