-
Notifications
You must be signed in to change notification settings - Fork 23
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
Precompiled builds #68
Comments
Hi, what do you mean by ios missing from One thing cargokit has that |
Interesting!
Then obviously I was wrong :). The thing that made me jump to that conclusion is the presence of https://github.com/irondash/cargokit/blob/main/build_tool/lib/src/build_pod.dart in cargokit. But as said, my experience with building for iOS is extremely limited.
What do you mean by this? Now I'm confused; I thought the whole point was to compile the binaries 'here' to begin with? Is flutter main needed only for building the package? or also for consuming? I will post any further questions on the |
After reading the proposal for native_assets again, I realize I had it all wrong, apparently. My goal of bundling the shared library with the package seems really not what that is all intended for? If so, I guess I need to go about it in another way: build the native bits with cargokit, place them somewhere so that they get picked up by pub publish, and then use native_assets_cli to hand them over to the app that is being built. Does that sound about right? |
First off, congrats and thanks for this project 👏 .
I know this (the title) is probably orthogonal to your project, but I was hoping to get in touch since rust+flutter is really rather new.
For a parser library I'm creating, I wanted to make dart/flutter bindings: vhdirk/dash7-rs#33:
The project was generated with flutter_rust_bridge and then modified a bit to try and make the 'magic' aspect of it a little less hidden. One of my goals is to not require the users of this library (me :) ) to have a working rust toolchain. Rather, I'd like to make builds available on pub, so that I can just use the package as if it where a regular dart/flutter package.
As far as I can tell, there seem to be 2 ways to do this:
For simplicity (from front-end developer POV), I wanted to try out native assets. It seems rather logical that the binaries would be shipped with the package itself. I came across your other project https://github.com/irondash/native_toolchain_rust. I think this is a (albeit very experimental) way to bundle rust libs with a dart/flutter package.
Seeing how iOS is currently still missing from
native_toolchain_rust
, and me not knowing the tiniest bit about building for iOS in the first place, I was thinking:Do you think it possible to trigger cargokit from hooks/build.dart, as such that it would then provide (and tell flutter/dart build about) the binaries? Since
native_toolchain_cli
provides the utilities to specify binaries per platform, I would guess that it shouldn't be that hard.Which is why I started from the example here: https://github.com/dart-lang/native/blob/main/pkgs/native_assets_cli/example/build/local_asset/hook/build.dart. I am assuming the file
asset.txt
should end up inbuild/flutter_assets
and referenced inAssetManifest.json
, when runningflutter build bundle
(without arguments).Is this correct at all? Am I on the right track here?
If you could share some of your wisdom (or point me to a place where I should look instead), I would be very grateful!
The text was updated successfully, but these errors were encountered: