-
Notifications
You must be signed in to change notification settings - Fork 53
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
[native_toolchain_rust] Introduce a package:native_toolchain_rust #883
Comments
Wow this is super great and helpful for flutter_rust_bridge, and looking forward to it! Option 1 is already very good, since it allows quite easy integration; and option 2 makes it even greater because we can now create a package with precompiled binaries easily, then users of packages do not need to spend time compiling. Some thoughts (I guess most are already in your mind, but anyway let me post it for completeness):
|
@fzyzcjy, I'm currently working on native_toolchain_rust (as a replacement for cargokit). Unlike cargokit however, it will not silently install thing during build. I think there is a cleaner approach to that: A separate tool - native_doctor that does all the installing and updates. When
When user runs
When user confirms it, it will automatically install all required items. @dcharkes, I am wondering if down the line, instead of separate tool, this could be somehow integrated with native assets. |
That sounds amazing! Yes, maybe we can pull it in to Dart and Flutter. We've been discussing:
Building this logic as a separate package Once Thanks for the great ideas and contributions @knopp and @fzyzcjy! 🚀 |
@dcharkes, I'd maybe like some feedback on |
Happy to take a look, what's the best course of action for that in Github? Creating a (draft) pull request for the |
I'm happy to let the project be in its own repo. (Unless there are some benefits to having it in this mono repo.) Maybe just a PR to another branch on the existing repo? |
Yes, the PR would be for reviewing only. Github doesn't allow adding comments on non-changed files in PRs, so I thought that might be the only way to review.. |
I don't see why it would need to live in the mono-repo. I'm not sure if I understand things correctly, but here is a PR with code for all packages. |
Can you invite dacoharkes@google.com to a publisher @knopp so I can transfer the package to you on pub.dev? |
Another wish may be hot restart / hot reload Rust (related e.g. fzyzcjy/flutter_rust_bridge#1966). Here are my brainstorms:
|
@dcharkes is there any indication as to when native assets will be activated in a Flutter or Dart release without the flag? edit: sorry, I just saw you were working on https://github.com/dart-lang/sdk/milestone/112 as of just last week; sorry to've pinged you, please launch on 🚀 |
We've got another milestone on this repo as well https://github.com/dart-lang/native/milestone/15. (And some Flutter issues that are not tracked on a milestone as it is in another org...) Also, this issue itself is being worked on via https://pub.dev/packages/native_toolchain_rust, so I'll close this. |
Edit: being developed on https://pub.dev/packages/native_toolchain_rust.
We should consider introducing a package to help calling the Rust compiler from Dart code.
Things this package could contain:
native_assets_cli
sTarget
andIOSSdk
to Rust target triples (These seem to deviate from other toolchains. Apple clang:arm64-apple-ios-simulator
vs Rustaarch64-apple-ios-sim
.This package could be used in multiple ways:
build.dart
scripts.tools/compile_all.dart
script on the GitHub CI (after which the artifacts can be downloaded in abuild.dart
script).cc @fzyzcjy @robertbastian Please post any wishes you have here.
The text was updated successfully, but these errors were encountered: