pub struct DartConfig {
pub pubspec_name: Option<String>,
pub lib_name: Option<String>,
pub package_name: Option<String>,
pub style: DartStyle,
pub frb_version: Option<String>,
pub features: Option<Vec<String>>,
pub serde_rename_all: Option<String>,
pub rename_fields: HashMap<String, String>,
pub exclude_functions: Vec<String>,
pub exclude_types: Vec<String>,
pub run_wrapper: Option<String>,
pub extra_lint_paths: Vec<String>,
}Fields§
§pubspec_name: Option<String>Dart pub.dev package name (e.g. "my_package"). Used as the name in
pubspec.yaml. Defaults to a snake_case derivation of the crate name.
lib_name: Option<String>Dart library name (the library declaration). Defaults to the pubspec name.
package_name: Option<String>Dart package name override (e.g. for pub.dev scoped packages).
style: DartStyleBridging style. "frb" (default) uses flutter_rust_bridge; "ffi" emits
raw dart:ffi source over the cbindgen C library.
frb_version: Option<String>flutter_rust_bridge version to pin in generated pubspec.yaml.
Defaults to template_versions::cargo::FLUTTER_RUST_BRIDGE when unset.
features: Option<Vec<String>>Cargo features to enable on the binding crate.
serde_rename_all: Option<String>Override the serde rename_all strategy for JSON field names (e.g. “camelCase”, “snake_case”).
rename_fields: HashMap<String, String>Per-field name remapping. Key is TypeName.field_name, value is the
desired binding field name. Applied after automatic keyword escaping.
exclude_functions: Vec<String>Functions to exclude from Dart binding generation.
exclude_types: Vec<String>Types to exclude from Dart binding generation.
run_wrapper: Option<String>Prefix wrapper for default tool invocations.
extra_lint_paths: Vec<String>Extra paths to append to default lint commands.
Trait Implementations§
Source§impl Clone for DartConfig
impl Clone for DartConfig
Source§fn clone(&self) -> DartConfig
fn clone(&self) -> DartConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more