fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
https://fzyzcjy.github.io/flutter_rust_bridge/
MIT License
4.29k stars 300 forks source link

Add Support for Compiling Rust Dependencies Using MSYS2 in flutter_rust_bridge #2258

Closed Losses closed 2 months ago

Losses commented 2 months ago

Is your feature request related to a problem? Please describe. I'm always frustrated when trying to compile the Rust parts with native dependencies using the MSVC toolchain, as many of these libraries fail to compile properly. This issue significantly hinders development and integration processes.

Describe the solution you'd like The support for compiling Rust dependencies using the MSYS2 toolchain in flutter_rust_bridge would help. Adding an option to use MSYS2 for compilation would provide a more robust and flexible development environment, and help resolve the compilation issues associated with the MSVC toolchain.

Describe alternatives you've considered An alternative solution would be to manually configure each Rust library with native dependencies to work with the MSVC toolchain, but this approach is time-consuming and not always feasible. Another alternative is to use a different development setup or environment that supports MSYS2, but this can lead to inconsistencies and additional overhead.

welcome[bot] commented 2 months ago

Hi! Thanks for opening your first issue here! :smile:

fzyzcjy commented 2 months ago

Hi, frb v2 use Cargokit by default to compile Rust and let Flutter find it. Thus, I guess your question may be related to Cargokit.

Losses commented 2 months ago

Cargokit

I think I should submit the issue to another repo, thanks!

fzyzcjy commented 2 months ago

You are welcome!

github-actions[bot] commented 2 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.