FLUTTER ECOSYSTEM

native_toolchain_rust

Rust support for Dart's build hooks. Automatically builds and bundles your Rust code with your Dart code!

Latest version
1.0.7
30-day downloads
64.9K
Likes
29
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter/Dart package that enables seamless integration of Rust code into Dart projects. It automatically compiles and bundles Rust libraries alongside Dart code using build hooks, simplifying cross-language development. Ideal for performance-critical components like cryptography, data processing, or system-level operations. Supports all major platforms including Android, iOS, Linux, macOS, and Windows.

Use cases

  • Integrating high-performance Rust libraries into Flutter apps
  • Building cryptographic functions with Rust
  • Optimizing data-heavy computations
  • Creating platform-specific native extensions
  • Enabling safe low-level system access

Key features

  • Automatic Rust compilation via build hooks
  • Cross-platform support (Android, iOS, Linux, macOS, Windows)
  • Seamless Dart-Rust interoperability
  • Minimal boilerplate setup
  • Built-in dependency management

Suitable for

  • Developers needing high-performance native code in Flutter
  • Teams using Rust for core logic
  • Projects requiring secure, fast computation
  • Cross-platform native extensions
  • Dart developers exploring Rust integration

Considerations

  • Requires Rust toolchain installed on the host machine
  • May increase build times due to Rust compilation
  • Limited debugging support for Rust code
  • Platform-specific build configurations may be needed
  • Learning curve for Rust beginners
Supported platformsAndroidiOSLinuxmacOSWindows

Install package

flutter pub add native_toolchain_rust

Categories

Dependencies

Dependency list 6 items

Source repository

Projects using this package

No data available yet.

Rankings