@@ -114,29 +114,10 @@ impl Builder {
114
114
self
115
115
}
116
116
117
- pub fn no_bitfield_methods ( mut self ) -> Builder {
118
- self . options . gen_bitfield_methods = false ;
119
- self
120
- }
121
-
122
117
pub fn no_unstable_rust ( mut self ) -> Builder {
123
118
self . options . unstable_rust = false ;
124
119
self
125
120
}
126
- pub fn rust_enums ( mut self , value : bool ) -> Builder {
127
- self . options . rust_enums = value;
128
- self
129
- }
130
-
131
- pub fn rename_types ( mut self , value : bool ) -> Builder {
132
- self . options . rename_types = value;
133
- self
134
- }
135
-
136
- pub fn disable_class_constants ( mut self ) -> Builder {
137
- self . options . class_constants = false ;
138
- self
139
- }
140
121
141
122
pub fn generate ( self ) -> Result < Bindings , ( ) > {
142
123
Bindings :: generate ( self . options , None )
@@ -152,24 +133,18 @@ pub struct BindgenOptions {
152
133
pub whitelisted_functions : RegexSet ,
153
134
pub whitelisted_vars : RegexSet ,
154
135
pub builtins : bool ,
155
- pub rust_enums : bool ,
156
136
pub links : Vec < ( String , LinkType ) > ,
157
137
pub emit_ast : bool ,
158
138
pub ignore_functions : bool ,
159
139
pub ignore_methods : bool ,
160
- pub gen_bitfield_methods : bool ,
161
140
pub enable_cxx_namespaces : bool ,
162
- pub rename_types : bool ,
163
141
pub derive_debug : bool ,
164
142
/// Generate or not only stable rust.
165
143
pub unstable_rust : bool ,
166
- /// Whether to generate C++ class constants.
167
- pub class_constants : bool ,
168
144
/// Wether to generate names that are **directly** under namespaces.
169
145
pub namespaced_constants : bool ,
170
146
/// Whether to use msvc mangling rules
171
147
pub msvc_mangling : bool ,
172
- pub override_enum_ty : String ,
173
148
pub raw_lines : Vec < String > ,
174
149
pub clang_args : Vec < String > ,
175
150
}
@@ -183,18 +158,13 @@ impl Default for BindgenOptions {
183
158
whitelisted_functions : Default :: default ( ) ,
184
159
whitelisted_vars : Default :: default ( ) ,
185
160
builtins : false ,
186
- rust_enums : true ,
187
161
links : vec ! [ ] ,
188
162
emit_ast : false ,
189
163
ignore_functions : false ,
190
164
ignore_methods : false ,
191
- gen_bitfield_methods : true ,
192
- rename_types : true ,
193
165
derive_debug : true ,
194
166
enable_cxx_namespaces : false ,
195
- override_enum_ty : "" . to_string ( ) ,
196
167
unstable_rust : true ,
197
- class_constants : true ,
198
168
namespaced_constants : true ,
199
169
msvc_mangling : false ,
200
170
raw_lines : vec ! [ ] ,
0 commit comments