-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only use cargokit for all platforms #95
Comments
Hope this becomes a reality someday :) For newcomers, the currently used connectors under the hood for each build target are:
These connectors are located in Links to those connectors' original repository: |
When this happens, maybe Current status of
|
Thank you for your support. It is a great idea. |
Yeah it is a challenging task, and I can say that it is not so urgent. This more looks like a nice interior refinement :) |
For anyone who might be working on this in the future, I will leave the link to a good reference project that also(and purely) uses cargokit: |
Yes, it's a good example, I am trying to transplant and combine to this project. |
Don't need to hurry, if we're going to do it, we can dive in when we have spare time haha |
In case it helps here is bit of documentation regarding cargokit: https://matejknopp.com/post/flutter_plugin_in_rust_with_no_prebuilt_binaries/ I should probably link it in cargokit readme. |
Wooo, It is very useful. |
@knopp Thanks! Maybe we can also contribute to cargokit development in the future from what we learned here. |
So great idea~ Let's do something interesting together. |
From that article, I can see that cargokit was designed to compile Rust crates to |
The plan was initially to use cdylib on all platforms. Unfortunately there are issues with using cdylib with cocoapods so for the time being static libraries are needed on iOS and macOS and the linking step is moved to podspec. |
I see, I also remember flutter_rust_bridge stated that iOS requires staticlib. |
Initially the Rust iOS target didn't support creating dynamic libraries at all. That is now fixed. The bigger problem is integrating with cocoapods (which FRB doesn't do) where XCode doesn't always relink with correct dylib version when the cdylib rebuilds. So unless I figure that out sticking to static lib on macOS and iOS is the way to go. |
Great explanation, thank you for your insights. |
Solved with #114 |
#85 (comment)
The text was updated successfully, but these errors were encountered: