Skip to content

Commit 63a7684

Browse files
authored
chore: Update bindgen to 0.65.1 (#241)
1 parent 1f9946f commit 63a7684

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ skeptic = "0.13"
2424

2525
[build-dependencies]
2626
anyhow = "1"
27-
bindgen = "0.63"
27+
bindgen = "0.65.1"
2828
cc = "1.0"
2929
skeptic = "0.13"
3030

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fn generate_bindings(defines: &[(&str, &str)], includes: &[PathBuf]) -> Result<S
161161
.map(|inc| format!("-I{}", inc.to_string_lossy())),
162162
)
163163
.clang_args(defines.iter().map(|(var, val)| format!("-D{var}={val}")))
164-
.rustfmt_bindings(true)
164+
.formatter(bindgen::Formatter::Rustfmt)
165165
.no_copy("_zval_struct")
166166
.no_copy("_zend_string")
167167
.no_copy("_zend_array")

docsrs_bindings.rs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.63.0 */
1+
/* automatically generated by rust-bindgen 0.65.1 */
22

33
pub const ZEND_DEBUG: u32 = 1;
44
pub const _ZEND_TYPE_NAME_BIT: u32 = 16777216;
@@ -87,11 +87,6 @@ pub const CONST_CS: u32 = 0;
8787
pub const CONST_PERSISTENT: u32 = 1;
8888
pub const CONST_NO_FILE_CACHE: u32 = 2;
8989
pub const CONST_DEPRECATED: u32 = 4;
90-
#[repr(C)]
91-
#[derive(Debug, Copy, Clone)]
92-
pub struct __sigset_t {
93-
pub __val: [::std::os::raw::c_ulong; 16usize],
94-
}
9590
pub type zend_long = i64;
9691
pub type zend_ulong = u64;
9792
pub type zend_uchar = ::std::os::raw::c_uchar;
@@ -1032,15 +1027,7 @@ pub struct _zend_execute_data {
10321027
pub run_time_cache: *mut *mut ::std::os::raw::c_void,
10331028
pub extra_named_params: *mut zend_array,
10341029
}
1035-
pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
1036-
#[repr(C)]
1037-
#[derive(Debug, Copy, Clone)]
1038-
pub struct __jmp_buf_tag {
1039-
pub __jmpbuf: __jmp_buf,
1040-
pub __mask_was_saved: ::std::os::raw::c_int,
1041-
pub __saved_mask: __sigset_t,
1042-
}
1043-
pub type jmp_buf = [__jmp_buf_tag; 1usize];
1030+
pub type sigjmp_buf = [::std::os::raw::c_int; 49usize];
10441031
pub type zend_executor_globals = _zend_executor_globals;
10451032
extern "C" {
10461033
pub static mut executor_globals: zend_executor_globals;
@@ -1107,7 +1094,7 @@ pub struct _zend_executor_globals {
11071094
pub symtable_cache_ptr: *mut *mut zend_array,
11081095
pub symbol_table: zend_array,
11091096
pub included_files: HashTable,
1110-
pub bailout: *mut jmp_buf,
1097+
pub bailout: *mut sigjmp_buf,
11111098
pub error_reporting: ::std::os::raw::c_int,
11121099
pub exit_status: ::std::os::raw::c_int,
11131100
pub function_table: *mut HashTable,

0 commit comments

Comments
 (0)