rust_file is a high-performance Dart and Flutter-compatible package for file and directory management, powered by Rust. This package provides a complete solution for performing various file and directory tasks—including creating, updating, deleting, and more. By leveraging Rust’s speed, rust_file ensures faster file operations than pure Dart implementations, making it ideal for applications requiring efficient file system handling.
- Comprehensive File Operations: Easily create, read, write, delete, and update files.
- Directory Management: Support for creating, listing, deleting, and manipulating directories.
- Cross-Platform: Compatible with Android, iOS, macOS, Windows, and Linux.
- High Performance: Built using Rust, ensuring optimal speed and efficiency for intensive file operations.
- Dart & Flutter Support: Designed for use in both Dart and Flutter projects.
To use rust_file, ensure you have:
Add rust_file to your Dart or Flutter project:
dependencies:
rust_file:
git: https://github.com/blackshadow-software/rust_file.gitRun the following to get the dependencies:
dart pub get
# or for Flutter
flutter pub get- Install Rust and cargo-kit:
In your Dart or Flutter code, load the Rust library based on the platform:
For mobile (Android & iOS), ensure you set up cross-compilation correctly. Use cargo-ndk for Android and configure Rust with the appropriate targets for iOS.
Contributions are welcome! Feel free to submit a pull request to improve functionality or add features.
MIT License. See LICENSE for more details.