pub struct Config {Show 34 fields
pub base_dir: Option<String>,
pub rust_input: Option<String>,
pub dart_output: Option<String>,
pub c_output: Option<String>,
pub duplicated_c_output: Option<Vec<String>>,
pub rust_root: Option<String>,
pub rust_output: Option<String>,
pub dart_entrypoint_class_name: Option<String>,
pub dart_format_line_length: Option<u32>,
pub dart_preamble: Option<String>,
pub rust_preamble: Option<String>,
pub dart_enums_style: Option<bool>,
pub add_mod_to_lib: Option<bool>,
pub llvm_path: Option<Vec<String>>,
pub llvm_compiler_opts: Option<String>,
pub dart_root: Option<String>,
pub build_runner: Option<bool>,
pub extra_headers: Option<String>,
pub web: Option<bool>,
pub deps_check: Option<bool>,
pub dart3: Option<bool>,
pub full_dep: Option<bool>,
pub local: Option<bool>,
pub default_external_library_loader_web_prefix: Option<String>,
pub dart_type_rename: Option<HashMap<String, String>>,
pub enable_lifetime: Option<bool>,
pub type_64bit_int: Option<bool>,
pub default_dart_async: Option<bool>,
pub auto_upgrade_dependency: Option<bool>,
pub parse_const: Option<bool>,
pub stop_on_error: Option<bool>,
pub dump: Option<Vec<ConfigDumpContent>>,
pub dump_all: Option<bool>,
pub rust_features: Option<Vec<String>>,
}
Expand description
Configuration for code generation
Refer to GenerateCommandArgs
for documentations
Fields§
§base_dir: Option<String>
§rust_input: Option<String>
§dart_output: Option<String>
§c_output: Option<String>
§duplicated_c_output: Option<Vec<String>>
§rust_root: Option<String>
§rust_output: Option<String>
§dart_entrypoint_class_name: Option<String>
§dart_format_line_length: Option<u32>
§dart_preamble: Option<String>
§rust_preamble: Option<String>
§dart_enums_style: Option<bool>
§add_mod_to_lib: Option<bool>
§llvm_path: Option<Vec<String>>
§llvm_compiler_opts: Option<String>
§dart_root: Option<String>
§build_runner: Option<bool>
§extra_headers: Option<String>
§web: Option<bool>
§deps_check: Option<bool>
§dart3: Option<bool>
§full_dep: Option<bool>
§local: Option<bool>
§default_external_library_loader_web_prefix: Option<String>
§dart_type_rename: Option<HashMap<String, String>>
§enable_lifetime: Option<bool>
§type_64bit_int: Option<bool>
§default_dart_async: Option<bool>
§auto_upgrade_dependency: Option<bool>
§parse_const: Option<bool>
§stop_on_error: Option<bool>
§dump: Option<Vec<ConfigDumpContent>>
§dump_all: Option<bool>
§rust_features: Option<Vec<String>>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more