rinf
8.11.0, released 6 weeks ago by cunarist.com
Framework for writing Rust business logic with type-safe messaging in Flutter apps
What it does
Rinf integrates Rust into Flutter applications as the native business logic layer. It automatically generates type-safe Dart classes from Rust structs and handles messaging between Dart and Rust through FFI.
AI-written summary of version 8.11.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to implement performance-critical business logic using Rust
- You need cross-platform support across Android, iOS, Windows, macOS, Linux, and Web
- You prefer an event-driven, stream-based approach for communication between GUI and backend
Skip it when
- Your entire team only knows Dart and has no experience with Rust
- You are building a simple app where native performance gains do not justify the build complexity
Strengths
- High-performance native execution via FFI without hidden web servers or webviews
- Type-safe communication generated automatically from Rust structs
- Supports all major Flutter platforms out of the box
Weaknesses
- Requires managing a Rust toolchain alongside Flutter
- Project currently looking for a new maintainer
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 2
Requires installing Rust toolchain and configuring the build framework for native Rust compilation.
StreamBuilder(
stream: MyMessage.rustSignalStream,
builder: (context, snapshot) {
final signalPack = snapshot.data;
if (signalPack == null) {
return Text('Nothing received yet');
}
final myMessage = signalPack.message;
return Text(myMessage.currentNumber.toString());
},
)Alternatives
Packages that do the same job and could replace rinf.
- bloc
A Dart library for implementing the BLoC pattern with Cubits and Blocs.
92Compare - flutter_bloc
Flutter widgets to easily integrate blocs and cubits for state management.
86Compare - signals_flutter
Fine-grained reactive state management library for Flutter using signals.
83Compare - signals_core
Fine-grained reactivity library for modeling state and business logic in Dart.
78Compare
Works with
Packages commonly used together with rinf: ones it builds on, ones built on it, and its own family.