File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,11 @@ fn main() {
6060 // Block long double math functions that use u128 (not FFI-safe)
6161 . blocklist_function ( "nexttoward.*" )
6262 . blocklist_function ( ".*l$" ) // Functions ending in 'l' (long double variants)
63- . blocklist_type ( ".*128.*" ) // Any types containing 128
63+ . blocklist_type ( "__uint128_t" )
64+ . blocklist_type ( "__int128_t" ) // Often problematic alongside __uint128_t
65+ . blocklist_type ( "__int128" )
66+ . blocklist_type ( "__uint128" )
67+
6468 // Tell cargo to invalidate the built crate whenever any of the
6569 // included header files changed.
6670 . parse_callbacks ( Box :: new ( bindgen:: CargoCallbacks ) )
@@ -86,8 +90,14 @@ fn main() {
8690 . rustified_enum ( "VSTransferCharacteristics" )
8791 . bitfield_enum ( "VSCoreCreationFlags" )
8892 . bitfield_enum ( "VSPluginConfigFlags" )
93+ . use_core ( )
8994 . prepend_enum_name ( false )
9095 . derive_eq ( false )
96+ . derive_default ( true ) // Add Default derives where possible
97+ . derive_debug ( true ) // Add Debug derives
98+ . derive_copy ( true ) // Add Copy derives where safe
99+ . derive_hash ( true ) // Add Hash derives
100+ . rustfmt_bindings ( true )
91101 . size_t_is_usize ( true )
92102 // Finish the builder and generate the bindings.
93103 . generate ( )
You can’t perform that action at this time.
0 commit comments