Struct lib_flutter_rust_bridge_codegen::Opts
source · pub struct Opts {Show 23 fields
pub rust_input_path: String,
pub dart_output_path: String,
pub dart_decl_output_path: Option<String>,
pub c_output_path: Vec<String>,
pub rust_crate_dir: String,
pub rust_output_path: String,
pub class_name: String,
pub dart_format_line_length: u32,
pub dart_enums_style: bool,
pub skip_add_mod_to_lib: bool,
pub llvm_path: Vec<String>,
pub llvm_compiler_opts: String,
pub manifest_path: String,
pub dart_root: Option<String>,
pub build_runner: bool,
pub block_index: BlockIndex,
pub skip_deps_check: bool,
pub wasm_enabled: bool,
pub inline_rust: bool,
pub bridge_in_method: bool,
pub extra_headers: String,
pub dart3: bool,
pub keep_going: bool,
}
Expand description
Parsed configs, mainly used for internal logic
Fields§
§rust_input_path: String
§dart_output_path: String
§dart_decl_output_path: Option<String>
§c_output_path: Vec<String>
§rust_crate_dir: String
§rust_output_path: String
§class_name: String
§dart_format_line_length: u32
§dart_enums_style: bool
§skip_add_mod_to_lib: bool
§llvm_path: Vec<String>
§llvm_compiler_opts: String
§manifest_path: String
§dart_root: Option<String>
§build_runner: bool
§block_index: BlockIndex
§skip_deps_check: bool
§wasm_enabled: bool
§inline_rust: bool
§bridge_in_method: bool
§extra_headers: String
§dart3: bool
§keep_going: bool
Implementations§
source§impl Opts
impl Opts
pub fn get_ir_file(&self) -> Result<IrFile, Error>
pub fn dart_api_class_name(&self) -> &str
pub fn dart_api_impl_class_name(&self) -> String
pub fn dart_wire_class_name(&self) -> String
pub fn dart_platform_class_name(&self) -> String
pub fn dart_wasm_module(&self) -> String
pub fn dart_wasm_output_path(&self) -> PathBuf
pub fn dart_io_output_path(&self) -> PathBuf
pub fn dart_common_output_path(&self) -> PathBuf
pub fn rust_wasm_output_path(&self) -> PathBuf
pub fn rust_io_output_path(&self) -> PathBuf
pub fn dart_root_or_default(&self) -> String
pub fn dart_freezed_path(&self) -> PathBuf
pub fn get_rust_output_paths(&self) -> PathForGeneration
pub fn get_dart_output_paths(&self) -> PathForGeneration
pub fn get_dart_api_bridge_name(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
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