Misc Features
📄️ Extra Dart code
Arbitrary extra Dart code can be inserted into auto-generated Dart classes,
📄️ Preambles
We can put arbitrary extra Dart or Rust code in the generated files. This feature is called Dart/Rust preamble.
📄️ Rust-GUI-via-Flutter Utilities
If you want to use Flutter as GUI of Rust,
📄️ Proxy
When annotating a method with #[frb(proxy)],
📄️ Multiple input folders
The rust_input configuration key supports multiple entries separated by commas.
📄️ Modules
Currently, only commonly used module syntaxes are supported
📄️ Rename Dart types
The automatically generated type names can be customized.
📄️ Ignoring things
The #[frb(ignore)] (or equivalently, /// flutterrustbridge:ignore) can be put on things to ignore them.
📄️ frb_override_* prefix
If a method name starts with frboverride,
📄️ Run in build.rs
There are basically two approaches to execute the code generator.