@@ -26,7 +26,7 @@ pub(crate) fn generate_class_files(
26
26
27
27
let mut modules = vec ! [ ] ;
28
28
for class in api. classes . iter ( ) {
29
- #[ cfg( feature = "minimal" ) ]
29
+ #[ cfg( not ( feature = "codegen-full" ) ) ]
30
30
if !crate :: SELECTED_CLASSES . contains ( & class. name . as_str ( ) ) {
31
31
continue ;
32
32
}
@@ -277,7 +277,7 @@ fn make_enums(enums: &Option<Vec<ClassEnum>>, _class_name: &str, _ctx: &Context)
277
277
}
278
278
}
279
279
280
- #[ cfg( feature = "minimal" ) ]
280
+ #[ cfg( not ( feature = "codegen-full" ) ) ]
281
281
fn is_type_excluded ( ty : & str , ctx : & mut Context ) -> bool {
282
282
let is_class_excluded = |class : & str | !crate :: SELECTED_CLASSES . contains ( & class) ;
283
283
@@ -308,7 +308,7 @@ fn is_method_excluded(method: &Method, #[allow(unused_variables)] ctx: &mut Cont
308
308
// As such support could be added later (if at all), with possibly safe interfaces (e.g. Vec for void*+size pairs)
309
309
310
310
// -- FIXME remove when impl complete
311
- #[ cfg( feature = "minimal" ) ]
311
+ #[ cfg( not ( feature = "codegen-full" ) ) ]
312
312
if method
313
313
. return_value
314
314
. as_ref ( )
@@ -333,12 +333,12 @@ fn is_method_excluded(method: &Method, #[allow(unused_variables)] ctx: &mut Cont
333
333
. map_or ( false , |args| args. iter ( ) . any ( |arg| arg. type_ . contains ( "*" ) ) )
334
334
}
335
335
336
- #[ cfg( not ( feature = "minimal" ) ) ]
336
+ #[ cfg( feature = "codegen-full" ) ]
337
337
fn is_function_excluded ( _function : & UtilityFunction , _ctx : & mut Context ) -> bool {
338
338
false
339
339
}
340
340
341
- #[ cfg( feature = "minimal" ) ]
341
+ #[ cfg( not ( feature = "codegen-full" ) ) ]
342
342
fn is_function_excluded ( function : & UtilityFunction , ctx : & mut Context ) -> bool {
343
343
function
344
344
. return_type
0 commit comments