Struct lib_flutter_rust_bridge_codegen::RawOpts
source · pub struct RawOpts {Show 25 fields
pub rust_input: Vec<String>,
pub dart_output: Vec<String>,
pub config_file: Option<String>,
pub dart_decl_output: Option<String>,
pub c_output: Option<Vec<String>>,
pub extra_c_output_path: Option<Vec<String>>,
pub rust_crate_dir: Option<Vec<String>>,
pub rust_output: Option<Vec<String>>,
pub class_name: Option<Vec<String>>,
pub dart_format_line_length: u32,
pub dart_enums_style: bool,
pub skip_add_mod_to_lib: bool,
pub llvm_path: Option<Vec<String>>,
pub llvm_compiler_opts: Option<String>,
pub dart_root: Option<Vec<String>>,
pub no_build_runner: bool,
pub no_use_bridge_in_method: bool,
pub extra_headers: Option<String>,
pub verbose: bool,
pub wasm: bool,
pub inline_rust: bool,
pub skip_deps_check: bool,
pub dump: Option<Vec<Dump>>,
pub dart3: bool,
pub keep_going: bool,
}
Fields§
§rust_input: Vec<String>
Path of input Rust code
dart_output: Vec<String>
Path of output generated Dart code
config_file: Option<String>
Path to a YAML config file.
If present, other options and flags will be ignored. Accepts the same options as the CLI, but uses snake_case keys.
dart_decl_output: Option<String>
If provided, generated Dart declaration code to this separate file
c_output: Option<Vec<String>>
Output path (including file name) of generated C header, each field corresponding to that of –rust-input.
extra_c_output_path: Option<Vec<String>>
Extra output path (excluding file name) of generated C header
rust_crate_dir: Option<Vec<String>>
Crate directory for your Rust project
rust_output: Option<Vec<String>>
Output path of generated Rust code
class_name: Option<Vec<String>>
Generated class name
dart_format_line_length: u32
Line length for Dart formatting
dart_enums_style: bool
The generated Dart enums will have their variant names camelCased.
skip_add_mod_to_lib: bool
Skip automatically adding mod bridge_generated;
to lib.rs
llvm_path: Option<Vec<String>>
Path to the installed LLVM
llvm_compiler_opts: Option<String>
LLVM compiler opts
dart_root: Option<Vec<String>>
Path to root of Dart project, otherwise inferred from –dart-output
no_build_runner: bool
Skip running build_runner even when codegen-required code is detected
no_use_bridge_in_method: bool
No use bridge in Model
extra_headers: Option<String>
extra_headers is used to add dependencies header
Note that when no_use_bridge_in_method=true and extra_headers is not set,
the default is import 'ffi.io.dart' if (dart.library.html) 'ffi.web.dart'
.
verbose: bool
Show debug messages.
wasm: bool
Enable WASM module generation. Requires: –dart-decl-output
inline_rust: bool
Inline declaration of Rust bridge modules
skip_deps_check: bool
Skip dependencies check.
dump: Option<Vec<Dump>>
A list of data to be dumped. If specified without a value, defaults to all.
dart3: bool
Disable language features introduced in Dart 3.
keep_going: bool
If set, the program will delay error reporting until all codegen operations have completed.
Implementations§
Trait Implementations§
source§impl CommandFactory for RawOpts
impl CommandFactory for RawOpts
source§impl<'de> Deserialize<'de> for RawOpts
impl<'de> Deserialize<'de> for RawOpts
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>,
source§impl FromArgMatches for RawOpts
impl FromArgMatches for RawOpts
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§impl Parser for RawOpts
impl Parser for RawOpts
source§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os()
, return Err on error.source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§impl PartialEq<RawOpts> for RawOpts
impl PartialEq<RawOpts> for RawOpts
impl Eq for RawOpts
impl StructuralEq for RawOpts
impl StructuralPartialEq for RawOpts
Auto Trait Implementations§
impl RefUnwindSafe for RawOpts
impl Send for RawOpts
impl Sync for RawOpts
impl Unpin for RawOpts
impl UnwindSafe for RawOpts
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.