rust_in_flutter 3.2.0 rust_in_flutter: ^3.2.0 copied to clipboard
"Rust as your Flutter backend, Flutter as your Rust frontend"
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add rust_in_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
rust_in_flutter: ^3.2.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:rust_in_flutter/rust_in_flutter.dart';