thlorenz / rid

Rust integrated Dart framework providing an easy way to build Flutter apps with Rust.
64 stars 4 forks source link

Rid

Rust integrated Dart framework providing an easy way to build Flutter apps with Rust.

Welcome to Rid

This is the repository in which rid development takes place. It contains all the necessary crates to generate code from macro attributes.

rid-build to pull it all together and rid-template-flutter is here for now to get started with an app quickly until I build a rid CLI tool which combines the two.

Note that rid-build makes platform specific assumptions about paths from which it attempts finding the libclang dynamic library required for the FFI generation between Rust and Dart FFI on your system. As part of generating the FFI bindings (./sh/bindgen when building the examples in the rid-examples repository), you can pass in the environment variable LIBCLANG_PATH to specify a custom path from where the Clang library is to be found (amongst the possibly many available on the system) to override the default search paths provided in rid-build/src/host_props.rs.

rid documentation will always live on the main docs section.

Using rid with an M1 Macbook

Building rid for an M1 Macbook requires additional steps:

In the future, all these steps will be automated.

Sponsors

Thank you very much for sponsoring me to help me keep working on rid as well as open source it fully as explained here.

Feel free to ask any questions.

I just have one favor to ask from you. Please do not fork this repository yet nor make it, or contained code available publicly as that would defeat the Sponsorware approach I chose to make rid development sustainable.

Additionally in order to keep the repository private yet allow sponsors to access it, I invite them as collaborators. Please respect however that I expect you to only read or use the code, but not push any updates to the repository. Any contribution should be provided via a pull request.

A huge thanks for your support! 🙏 ❤️

LICENSE

MIT