Skip to content

Commit 768761c

Browse files
Update cargo.toml version to 1.9.3
1 parent fbb27e4 commit 768761c

File tree

3 files changed

+350
-91
lines changed

3 files changed

+350
-91
lines changed

csbindgen-tests/src/lz4.rs

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

33
pub const LZ4_FREESTANDING: u32 = 0;
44
pub const LZ4_VERSION_MAJOR: u32 = 1;
@@ -13,22 +13,101 @@ pub const LZ4_MAX_INPUT_SIZE: u32 = 2113929216;
1313
pub const LZ4_HASHLOG: u32 = 12;
1414
pub const LZ4_HASHTABLESIZE: u32 = 16384;
1515
pub const LZ4_HASH_SIZE_U32: u32 = 4096;
16-
pub const _VCRT_COMPILER_PREPROCESSOR: u32 = 1;
17-
pub const _SAL_VERSION: u32 = 20;
18-
pub const __SAL_H_VERSION: u32 = 180000000;
19-
pub const _USE_DECLSPECS_FOR_SAL: u32 = 0;
20-
pub const _USE_ATTRIBUTES_FOR_SAL: u32 = 0;
21-
pub const _CRT_PACKING: u32 = 8;
22-
pub const _HAS_EXCEPTIONS: u32 = 1;
23-
pub const _STL_LANG: u32 = 0;
24-
pub const _HAS_CXX17: u32 = 0;
25-
pub const _HAS_CXX20: u32 = 0;
26-
pub const _HAS_CXX23: u32 = 0;
27-
pub const _HAS_NODISCARD: u32 = 0;
28-
pub const WCHAR_MIN: u32 = 0;
29-
pub const WCHAR_MAX: u32 = 65535;
16+
pub const _STDINT_H: u32 = 1;
17+
pub const _FEATURES_H: u32 = 1;
18+
pub const _DEFAULT_SOURCE: u32 = 1;
19+
pub const __GLIBC_USE_ISOC2X: u32 = 0;
20+
pub const __USE_ISOC11: u32 = 1;
21+
pub const __USE_ISOC99: u32 = 1;
22+
pub const __USE_ISOC95: u32 = 1;
23+
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
24+
pub const _POSIX_SOURCE: u32 = 1;
25+
pub const _POSIX_C_SOURCE: u32 = 200809;
26+
pub const __USE_POSIX: u32 = 1;
27+
pub const __USE_POSIX2: u32 = 1;
28+
pub const __USE_POSIX199309: u32 = 1;
29+
pub const __USE_POSIX199506: u32 = 1;
30+
pub const __USE_XOPEN2K: u32 = 1;
31+
pub const __USE_XOPEN2K8: u32 = 1;
32+
pub const _ATFILE_SOURCE: u32 = 1;
33+
pub const __WORDSIZE: u32 = 64;
34+
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
35+
pub const __SYSCALL_WORDSIZE: u32 = 64;
36+
pub const __TIMESIZE: u32 = 64;
37+
pub const __USE_MISC: u32 = 1;
38+
pub const __USE_ATFILE: u32 = 1;
39+
pub const __USE_FORTIFY_LEVEL: u32 = 0;
40+
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
41+
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
42+
pub const _STDC_PREDEF_H: u32 = 1;
43+
pub const __STDC_IEC_559__: u32 = 1;
44+
pub const __STDC_IEC_60559_BFP__: u32 = 201404;
45+
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
46+
pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
47+
pub const __STDC_ISO_10646__: u32 = 201706;
48+
pub const __GNU_LIBRARY__: u32 = 6;
49+
pub const __GLIBC__: u32 = 2;
50+
pub const __GLIBC_MINOR__: u32 = 35;
51+
pub const _SYS_CDEFS_H: u32 = 1;
52+
pub const __glibc_c99_flexarr_available: u32 = 1;
53+
pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
54+
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
55+
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
56+
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
57+
pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
58+
pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
59+
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
60+
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
61+
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
62+
pub const _BITS_TYPES_H: u32 = 1;
63+
pub const _BITS_TYPESIZES_H: u32 = 1;
64+
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
65+
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
66+
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
67+
pub const __STATFS_MATCHES_STATFS64: u32 = 1;
68+
pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
69+
pub const __FD_SETSIZE: u32 = 1024;
70+
pub const _BITS_TIME64_H: u32 = 1;
71+
pub const _BITS_WCHAR_H: u32 = 1;
72+
pub const _BITS_STDINT_INTN_H: u32 = 1;
73+
pub const _BITS_STDINT_UINTN_H: u32 = 1;
74+
pub const INT8_MIN: i32 = -128;
75+
pub const INT16_MIN: i32 = -32768;
76+
pub const INT32_MIN: i32 = -2147483648;
77+
pub const INT8_MAX: u32 = 127;
78+
pub const INT16_MAX: u32 = 32767;
79+
pub const INT32_MAX: u32 = 2147483647;
80+
pub const UINT8_MAX: u32 = 255;
81+
pub const UINT16_MAX: u32 = 65535;
82+
pub const UINT32_MAX: u32 = 4294967295;
83+
pub const INT_LEAST8_MIN: i32 = -128;
84+
pub const INT_LEAST16_MIN: i32 = -32768;
85+
pub const INT_LEAST32_MIN: i32 = -2147483648;
86+
pub const INT_LEAST8_MAX: u32 = 127;
87+
pub const INT_LEAST16_MAX: u32 = 32767;
88+
pub const INT_LEAST32_MAX: u32 = 2147483647;
89+
pub const UINT_LEAST8_MAX: u32 = 255;
90+
pub const UINT_LEAST16_MAX: u32 = 65535;
91+
pub const UINT_LEAST32_MAX: u32 = 4294967295;
92+
pub const INT_FAST8_MIN: i32 = -128;
93+
pub const INT_FAST16_MIN: i64 = -9223372036854775808;
94+
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
95+
pub const INT_FAST8_MAX: u32 = 127;
96+
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
97+
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
98+
pub const UINT_FAST8_MAX: u32 = 255;
99+
pub const UINT_FAST16_MAX: i32 = -1;
100+
pub const UINT_FAST32_MAX: i32 = -1;
101+
pub const INTPTR_MIN: i64 = -9223372036854775808;
102+
pub const INTPTR_MAX: u64 = 9223372036854775807;
103+
pub const UINTPTR_MAX: i32 = -1;
104+
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
105+
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
106+
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
107+
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
108+
pub const SIZE_MAX: i32 = -1;
30109
pub const WINT_MIN: u32 = 0;
31-
pub const WINT_MAX: u32 = 65535;
110+
pub const WINT_MAX: u32 = 4294967295;
32111
pub const LZ4_STREAM_MINSIZE: u32 = 16416;
33112
pub const LZ4_STREAMDECODE_MINSIZE: u32 = 32;
34113
pub const LZ4HC_CLEVEL_MIN: u32 = 3;
@@ -56,8 +135,50 @@ pub const XXH_VERSION_MAJOR: u32 = 0;
56135
pub const XXH_VERSION_MINOR: u32 = 6;
57136
pub const XXH_VERSION_RELEASE: u32 = 5;
58137
pub const XXH_VERSION_NUMBER: u32 = 605;
59-
pub type wchar_t = ::std::os::raw::c_ushort;
60-
pub type max_align_t = f64;
138+
pub type wchar_t = ::std::os::raw::c_int;
139+
#[repr(C)]
140+
#[repr(align(16))]
141+
#[derive(Debug, Copy, Clone)]
142+
pub struct max_align_t {
143+
pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
144+
pub __bindgen_padding_0: u64,
145+
pub __clang_max_align_nonce2: u128,
146+
}
147+
#[test]
148+
fn bindgen_test_layout_max_align_t() {
149+
const UNINIT: ::std::mem::MaybeUninit<max_align_t> = ::std::mem::MaybeUninit::uninit();
150+
let ptr = UNINIT.as_ptr();
151+
assert_eq!(
152+
::std::mem::size_of::<max_align_t>(),
153+
32usize,
154+
concat!("Size of: ", stringify!(max_align_t))
155+
);
156+
assert_eq!(
157+
::std::mem::align_of::<max_align_t>(),
158+
16usize,
159+
concat!("Alignment of ", stringify!(max_align_t))
160+
);
161+
assert_eq!(
162+
unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize },
163+
0usize,
164+
concat!(
165+
"Offset of field: ",
166+
stringify!(max_align_t),
167+
"::",
168+
stringify!(__clang_max_align_nonce1)
169+
)
170+
);
171+
assert_eq!(
172+
unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize },
173+
16usize,
174+
concat!(
175+
"Offset of field: ",
176+
stringify!(max_align_t),
177+
"::",
178+
stringify!(__clang_max_align_nonce2)
179+
)
180+
);
181+
}
61182
extern "C" {
62183
pub fn LZ4_versionNumber() -> ::std::os::raw::c_int;
63184
}
@@ -219,41 +340,116 @@ extern "C" {
219340
dictSize: ::std::os::raw::c_int,
220341
) -> ::std::os::raw::c_int;
221342
}
222-
pub type va_list = *mut ::std::os::raw::c_char;
223-
extern "C" {
224-
pub fn __va_start(arg1: *mut *mut ::std::os::raw::c_char, ...);
225-
}
226-
pub type __vcrt_bool = bool;
227-
extern "C" {
228-
pub fn __security_init_cookie();
229-
}
230-
extern "C" {
231-
pub fn __security_check_cookie(_StackCookie: usize);
232-
}
233-
extern "C" {
234-
pub fn __report_gsfailure(_StackCookie: usize) -> !;
343+
pub type __u_char = ::std::os::raw::c_uchar;
344+
pub type __u_short = ::std::os::raw::c_ushort;
345+
pub type __u_int = ::std::os::raw::c_uint;
346+
pub type __u_long = ::std::os::raw::c_ulong;
347+
pub type __int8_t = ::std::os::raw::c_schar;
348+
pub type __uint8_t = ::std::os::raw::c_uchar;
349+
pub type __int16_t = ::std::os::raw::c_short;
350+
pub type __uint16_t = ::std::os::raw::c_ushort;
351+
pub type __int32_t = ::std::os::raw::c_int;
352+
pub type __uint32_t = ::std::os::raw::c_uint;
353+
pub type __int64_t = ::std::os::raw::c_long;
354+
pub type __uint64_t = ::std::os::raw::c_ulong;
355+
pub type __int_least8_t = __int8_t;
356+
pub type __uint_least8_t = __uint8_t;
357+
pub type __int_least16_t = __int16_t;
358+
pub type __uint_least16_t = __uint16_t;
359+
pub type __int_least32_t = __int32_t;
360+
pub type __uint_least32_t = __uint32_t;
361+
pub type __int_least64_t = __int64_t;
362+
pub type __uint_least64_t = __uint64_t;
363+
pub type __quad_t = ::std::os::raw::c_long;
364+
pub type __u_quad_t = ::std::os::raw::c_ulong;
365+
pub type __intmax_t = ::std::os::raw::c_long;
366+
pub type __uintmax_t = ::std::os::raw::c_ulong;
367+
pub type __dev_t = ::std::os::raw::c_ulong;
368+
pub type __uid_t = ::std::os::raw::c_uint;
369+
pub type __gid_t = ::std::os::raw::c_uint;
370+
pub type __ino_t = ::std::os::raw::c_ulong;
371+
pub type __ino64_t = ::std::os::raw::c_ulong;
372+
pub type __mode_t = ::std::os::raw::c_uint;
373+
pub type __nlink_t = ::std::os::raw::c_ulong;
374+
pub type __off_t = ::std::os::raw::c_long;
375+
pub type __off64_t = ::std::os::raw::c_long;
376+
pub type __pid_t = ::std::os::raw::c_int;
377+
#[repr(C)]
378+
#[derive(Debug, Copy, Clone)]
379+
pub struct __fsid_t {
380+
pub __val: [::std::os::raw::c_int; 2usize],
235381
}
236-
extern "C" {
237-
pub static mut __security_cookie: usize;
382+
#[test]
383+
fn bindgen_test_layout___fsid_t() {
384+
const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
385+
let ptr = UNINIT.as_ptr();
386+
assert_eq!(
387+
::std::mem::size_of::<__fsid_t>(),
388+
8usize,
389+
concat!("Size of: ", stringify!(__fsid_t))
390+
);
391+
assert_eq!(
392+
::std::mem::align_of::<__fsid_t>(),
393+
4usize,
394+
concat!("Alignment of ", stringify!(__fsid_t))
395+
);
396+
assert_eq!(
397+
unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
398+
0usize,
399+
concat!(
400+
"Offset of field: ",
401+
stringify!(__fsid_t),
402+
"::",
403+
stringify!(__val)
404+
)
405+
);
238406
}
239-
pub type int_least8_t = ::std::os::raw::c_schar;
240-
pub type int_least16_t = ::std::os::raw::c_short;
241-
pub type int_least32_t = ::std::os::raw::c_int;
242-
pub type int_least64_t = ::std::os::raw::c_longlong;
243-
pub type uint_least8_t = ::std::os::raw::c_uchar;
244-
pub type uint_least16_t = ::std::os::raw::c_ushort;
245-
pub type uint_least32_t = ::std::os::raw::c_uint;
246-
pub type uint_least64_t = ::std::os::raw::c_ulonglong;
407+
pub type __clock_t = ::std::os::raw::c_long;
408+
pub type __rlim_t = ::std::os::raw::c_ulong;
409+
pub type __rlim64_t = ::std::os::raw::c_ulong;
410+
pub type __id_t = ::std::os::raw::c_uint;
411+
pub type __time_t = ::std::os::raw::c_long;
412+
pub type __useconds_t = ::std::os::raw::c_uint;
413+
pub type __suseconds_t = ::std::os::raw::c_long;
414+
pub type __suseconds64_t = ::std::os::raw::c_long;
415+
pub type __daddr_t = ::std::os::raw::c_int;
416+
pub type __key_t = ::std::os::raw::c_int;
417+
pub type __clockid_t = ::std::os::raw::c_int;
418+
pub type __timer_t = *mut ::std::os::raw::c_void;
419+
pub type __blksize_t = ::std::os::raw::c_long;
420+
pub type __blkcnt_t = ::std::os::raw::c_long;
421+
pub type __blkcnt64_t = ::std::os::raw::c_long;
422+
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
423+
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
424+
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
425+
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
426+
pub type __fsword_t = ::std::os::raw::c_long;
427+
pub type __ssize_t = ::std::os::raw::c_long;
428+
pub type __syscall_slong_t = ::std::os::raw::c_long;
429+
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
430+
pub type __loff_t = __off64_t;
431+
pub type __caddr_t = *mut ::std::os::raw::c_char;
432+
pub type __intptr_t = ::std::os::raw::c_long;
433+
pub type __socklen_t = ::std::os::raw::c_uint;
434+
pub type __sig_atomic_t = ::std::os::raw::c_int;
435+
pub type int_least8_t = __int_least8_t;
436+
pub type int_least16_t = __int_least16_t;
437+
pub type int_least32_t = __int_least32_t;
438+
pub type int_least64_t = __int_least64_t;
439+
pub type uint_least8_t = __uint_least8_t;
440+
pub type uint_least16_t = __uint_least16_t;
441+
pub type uint_least32_t = __uint_least32_t;
442+
pub type uint_least64_t = __uint_least64_t;
247443
pub type int_fast8_t = ::std::os::raw::c_schar;
248-
pub type int_fast16_t = ::std::os::raw::c_int;
249-
pub type int_fast32_t = ::std::os::raw::c_int;
250-
pub type int_fast64_t = ::std::os::raw::c_longlong;
444+
pub type int_fast16_t = ::std::os::raw::c_long;
445+
pub type int_fast32_t = ::std::os::raw::c_long;
446+
pub type int_fast64_t = ::std::os::raw::c_long;
251447
pub type uint_fast8_t = ::std::os::raw::c_uchar;
252-
pub type uint_fast16_t = ::std::os::raw::c_uint;
253-
pub type uint_fast32_t = ::std::os::raw::c_uint;
254-
pub type uint_fast64_t = ::std::os::raw::c_ulonglong;
255-
pub type intmax_t = ::std::os::raw::c_longlong;
256-
pub type uintmax_t = ::std::os::raw::c_ulonglong;
448+
pub type uint_fast16_t = ::std::os::raw::c_ulong;
449+
pub type uint_fast32_t = ::std::os::raw::c_ulong;
450+
pub type uint_fast64_t = ::std::os::raw::c_ulong;
451+
pub type intmax_t = __intmax_t;
452+
pub type uintmax_t = __uintmax_t;
257453
pub type LZ4_i8 = i8;
258454
pub type LZ4_byte = u8;
259455
pub type LZ4_u16 = u16;
@@ -1043,19 +1239,19 @@ pub const LZ4F_blockSizeID_t_LZ4F_max64KB: LZ4F_blockSizeID_t = 4;
10431239
pub const LZ4F_blockSizeID_t_LZ4F_max256KB: LZ4F_blockSizeID_t = 5;
10441240
pub const LZ4F_blockSizeID_t_LZ4F_max1MB: LZ4F_blockSizeID_t = 6;
10451241
pub const LZ4F_blockSizeID_t_LZ4F_max4MB: LZ4F_blockSizeID_t = 7;
1046-
pub type LZ4F_blockSizeID_t = ::std::os::raw::c_int;
1242+
pub type LZ4F_blockSizeID_t = ::std::os::raw::c_uint;
10471243
pub const LZ4F_blockMode_t_LZ4F_blockLinked: LZ4F_blockMode_t = 0;
10481244
pub const LZ4F_blockMode_t_LZ4F_blockIndependent: LZ4F_blockMode_t = 1;
1049-
pub type LZ4F_blockMode_t = ::std::os::raw::c_int;
1245+
pub type LZ4F_blockMode_t = ::std::os::raw::c_uint;
10501246
pub const LZ4F_contentChecksum_t_LZ4F_noContentChecksum: LZ4F_contentChecksum_t = 0;
10511247
pub const LZ4F_contentChecksum_t_LZ4F_contentChecksumEnabled: LZ4F_contentChecksum_t = 1;
1052-
pub type LZ4F_contentChecksum_t = ::std::os::raw::c_int;
1248+
pub type LZ4F_contentChecksum_t = ::std::os::raw::c_uint;
10531249
pub const LZ4F_blockChecksum_t_LZ4F_noBlockChecksum: LZ4F_blockChecksum_t = 0;
10541250
pub const LZ4F_blockChecksum_t_LZ4F_blockChecksumEnabled: LZ4F_blockChecksum_t = 1;
1055-
pub type LZ4F_blockChecksum_t = ::std::os::raw::c_int;
1251+
pub type LZ4F_blockChecksum_t = ::std::os::raw::c_uint;
10561252
pub const LZ4F_frameType_t_LZ4F_frame: LZ4F_frameType_t = 0;
10571253
pub const LZ4F_frameType_t_LZ4F_skippableFrame: LZ4F_frameType_t = 1;
1058-
pub type LZ4F_frameType_t = ::std::os::raw::c_int;
1254+
pub type LZ4F_frameType_t = ::std::os::raw::c_uint;
10591255
#[doc = " LZ4F_frameInfo_t :\n makes it possible to set or read frame parameters.\n Structure must be first init to 0, using memset() or LZ4F_INIT_FRAMEINFO,\n setting all parameters to default.\n It's then possible to update selectively some parameters"]
10601256
#[repr(C)]
10611257
#[derive(Debug, Copy, Clone)]
@@ -1463,7 +1659,7 @@ extern "C" {
14631659
}
14641660
pub const XXH_errorcode_XXH_OK: XXH_errorcode = 0;
14651661
pub const XXH_errorcode_XXH_ERROR: XXH_errorcode = 1;
1466-
pub type XXH_errorcode = ::std::os::raw::c_int;
1662+
pub type XXH_errorcode = ::std::os::raw::c_uint;
14671663
extern "C" {
14681664
pub fn XXH_versionNumber() -> ::std::os::raw::c_uint;
14691665
}

csbindgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "csbindgen"
3-
version = "1.9.2"
3+
version = "1.9.3"
44
edition = "2021"
55
authors = ["Yoshifumi Kawai <ils@neue.cc>", "Cysharp, Inc."]
66
description = "Generate C# FFI from Rust for automatically brings native code and C native library to .NET and Unity."

0 commit comments

Comments
 (0)