Miscellaneous
📄️ Directory structure (multi-file)
This page is about the directory generated by flutterrustbridge_codegen create/integrate.
📄️ Methods
There is support for structs with methods. Both static methods, and non-static methods are supported.
📄️ Callables
Your Rust struct can be a callable object at the Dart side.
📄️ Properties
Getters are currently supported.
📄️ Constructors
Firstly, when a Rust struct has synchronous new method,
📄️ Extra Dart code
Arbitrary extra Dart code can be inserted into auto-generated Dart classes.
📄️ Equals and Hash
This page discusses the operator== (equals) and hashCode of the automatically generated Dart class.
📄️ Codec
Main codec
📄️ Run in build.rs
There are basically two approaches to execute the code generator.
📄️ Expanding macros
This library automatically handles macros inside your code. For example, support you calls a macro that will generate a struct, then even if that struct is not in the code directly, this library can understand it.
📄️ Ignoring Functions
Sometimes you may want functions not to be translated by flutterrustbridge.
📄️ Parameter defaults
Dart allows default values for function and constructor parameters, and you can achieve the same effect using #[frb(default)]. The syntax is as follows:
📄️ Pure Dart
This page discusses scenarios when you want to use Rust with Dart (without Flutter).
📄️ Dart Isolates
There is no need to read this page,
📄️ Safety and CI
CI
📄️ Compatibility and versioning
Since flutterrustbridge v2, we will try our best to follow semantics versioning
📄️ Deployment
Please follow the standard Flutter's deployment guides, with one extra bit:
📄️ What's new in V2
Changelog
🗃️ Upgrade
2 items