Struct swift_bridge_ir::CodegenConfig
source · pub struct CodegenConfig {
pub crate_feature_lookup: Box<dyn Fn(&str) -> bool>,
}Expand description
Configuration for how we will generate our Swift code.
Fields§
§crate_feature_lookup: Box<dyn Fn(&str) -> bool>Look up whether or not a feature is enabled for the crate that holds the bridge module.
This helps us decide whether or not to generate code for parts of the module
that are annotated with #[cfg(feature = "some-feature")]