Babylonia-terminal/babylonia_terminal_launcher
2024-05-27 18:36:49 +02:00
..
assets/images starting GUI 2024-05-11 22:20:11 +02:00
lib Add error dialog 2024-05-27 18:36:49 +02:00
messages Add error dialog 2024-05-27 18:36:49 +02:00
native/hub Add error dialog 2024-05-27 18:36:49 +02:00
.gitignore add rust to GUI launcher 2024-05-16 21:42:07 +02:00
.metadata starting GUI 2024-05-11 22:20:11 +02:00
analysis_options.yaml starting GUI 2024-05-11 22:20:11 +02:00
Cargo.toml add rust to GUI launcher 2024-05-16 21:42:07 +02:00
pubspec.yaml Add error dialog 2024-05-27 18:36:49 +02:00
README.md add rust to GUI launcher 2024-05-16 21:42:07 +02:00

Using Rust Inside Flutter

This project leverages Flutter for GUI and Rust for the backend logic, utilizing the capabilities of the Rinf framework.

To run and build this app, you need to have Flutter SDK and Rust toolchain installed on your system. You can check that your system is ready with the commands below. Note that all the Flutter subcomponents should be installed.

rustc --version
flutter doctor

You also need to have the CLI tool for Rinf ready.

cargo install rinf

Messages sent between Dart and Rust are implemented using Protobuf. If you have newly cloned the project repository or made changes to the .proto files in the ./messages directory, run the following command:

rinf message

Now you can run and build this app just like any other Flutter projects.

flutter run

For detailed instructions on writing Rust and Flutter together, please refer to Rinf's documentation.