Rust compilation
Sometimes, some customization about Rust compilation may be needed, such as using nightly Rust (instead of stable Rust).
To customize this, please refer to the documentations of the tool that is used in your project to compile Rust.
See here for a list of common tools.
For example, the default flutter_rust_bridge_codegen create
command uses Cargokit to compile Rust.
Thus, we can refer
to the doc and write down:
# cargokit.yaml
cargo:
release:
toolchain: nightly
to fulfill the need of using nightly Rust.