@@ -295,6 +295,7 @@ impl Builder {
295
295
( & self . options . whitelisted_vars , "--whitelist-var" ) ,
296
296
( & self . options . no_partialeq_types , "--no-partialeq" ) ,
297
297
( & self . options . no_copy_types , "--no-copy" ) ,
298
+ ( & self . options . no_debug_types , "--no-debug" ) ,
298
299
( & self . options . no_hash_types , "--no-hash" ) ,
299
300
] ;
300
301
@@ -1410,6 +1411,13 @@ impl Builder {
1410
1411
self
1411
1412
}
1412
1413
1414
+ /// Don't derive `Debug` for a given type. Regular
1415
+ /// expressions are supported.
1416
+ pub fn no_debug < T : Into < String > > ( mut self , arg : T ) -> Self {
1417
+ self . options . no_debug_types . insert ( arg. into ( ) ) ;
1418
+ self
1419
+ }
1420
+
1413
1421
/// Don't derive `Hash` for a given type. Regular
1414
1422
/// expressions are supported.
1415
1423
pub fn no_hash < T : Into < String > > ( mut self , arg : T ) -> Builder {
@@ -1691,6 +1699,9 @@ struct BindgenOptions {
1691
1699
/// The set of types that we should not derive `Copy` for.
1692
1700
no_copy_types : RegexSet ,
1693
1701
1702
+ /// The set of types that we should not derive `Debug` for.
1703
+ no_debug_types : RegexSet ,
1704
+
1694
1705
/// The set of types that we should not derive `Hash` for.
1695
1706
no_hash_types : RegexSet ,
1696
1707
@@ -1727,6 +1738,7 @@ impl BindgenOptions {
1727
1738
& mut self . new_type_alias_deref ,
1728
1739
& mut self . no_partialeq_types ,
1729
1740
& mut self . no_copy_types ,
1741
+ & mut self . no_debug_types ,
1730
1742
& mut self . no_hash_types ,
1731
1743
] ;
1732
1744
let record_matches = self . record_matches ;
@@ -1824,6 +1836,7 @@ impl Default for BindgenOptions {
1824
1836
rustfmt_configuration_file : None ,
1825
1837
no_partialeq_types : Default :: default ( ) ,
1826
1838
no_copy_types : Default :: default ( ) ,
1839
+ no_debug_types : Default :: default ( ) ,
1827
1840
no_hash_types : Default :: default ( ) ,
1828
1841
array_pointers_in_arguments : false ,
1829
1842
wasm_import_module_name : None ,
0 commit comments