FLUTTER ECOSYSTEM

rust

A pure Dart implementation of Rust patterns. Types include Result, Option, Cell, Slice, Array, Iterator, Channels, Mutex, Path, etc.

Latest version
3.1.0
30-day downloads
358
Likes
15
Pub points
140

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

A pure Dart implementation of Rust-inspired patterns and types, bringing idiomatic Rust concepts like Result, Option, Mutex, and Iterator to Dart. It enables safer, more expressive code by mimicking Rust's error handling, ownership semantics, and functional programming constructs. Designed for developers familiar with Rust or seeking similar safety and clarity in Dart applications. The package supports multiple platforms including mobile, web, and desktop.

Use cases
  • Error handling with Result and Option types
  • Safe state management using Cell and Mutex
  • Functional programming with Iterator and Slice
  • Cross-platform apps needing Rust-like safety
  • Building robust APIs with structured error handling
Key features
  • Pure Dart implementation
  • Rust-style Result and Option types
  • Thread-safe synchronization with Mutex
  • Functional utilities like Iterator and Slice
  • Support for channels and path manipulation
Suitable for
  • Dart developers familiar with Rust
  • Projects prioritizing type safety
  • Teams adopting functional programming patterns
  • Multi-platform applications requiring robustness
  • Developers wanting Rust-like error handling in Dart
Considerations
  • Not a full Rust runtime
  • Limited to pattern emulation, not language interoperability
  • Learning curve for developers unfamiliar with Rust concepts
  • Performance overhead from abstraction layers
  • No native Rust code execution
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add rust

Categories

Related projects