Skip to content
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

Publish flutter_rust_bridge_utils to pub.dev #2274

Closed
Tienisto opened this issue Sep 4, 2024 · 5 comments
Closed

Publish flutter_rust_bridge_utils to pub.dev #2274

Tienisto opened this issue Sep 4, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@Tienisto
Copy link
Contributor

Tienisto commented Sep 4, 2024

Is your feature request related to a problem? Please describe.
I cannot publish a Dart-only package on pub.dev because flutter_rust_bridge_utils itself is not published yet.

Describe the solution you'd like
Publish the package on pub.dev

Describe alternatives you've considered
None.

Additional context
This is just an issue to easier track the process. If you feel that this is too bleeding edge, then feel free to wait until native assets are stabilized in Dart.

@Tienisto Tienisto added the enhancement New feature or request label Sep 4, 2024
@fzyzcjy
Copy link
Owner

fzyzcjy commented Sep 5, 2024

Firstly, I wonder which exact part of flutter_rust_bridge_utils are you using? By knowing this I could give more specific advice (e.g. copy-paste it to your project, or I should publish it, etc)

@fzyzcjy fzyzcjy added the awaiting Waiting for responses, PR, further discussions, upstream release, etc label Sep 5, 2024
@Tienisto
Copy link
Contributor Author

Tienisto commented Sep 5, 2024

I think to enable Dart-only support, we need to add a build.dart file.

According to https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/frb_example/dart_minimal/build.dart
FRB provides simpleBuild that abstracts of the complexity.

simpleBuild itself doesn't seem to do too much, so I could theoretically copy-paste it

@fzyzcjy
Copy link
Owner

fzyzcjy commented Sep 5, 2024

I guess copy-paste may be a good way, since the utils are mainly ad-hoc scripts that are useful mainly inside frb, and has no enough encapsulation etc.

Another way may be using: https://pub.dev/packages/native_toolchain_rust (which did not exist at the time when I wrote simpleBuild) I have not tested it, but theoretically speaking it should work since it also compiles Rust.

@fzyzcjy
Copy link
Owner

fzyzcjy commented Sep 11, 2024

Close since seems to be solved, but feel free to reopen if you have anything to discuss!

@fzyzcjy fzyzcjy closed this as completed Sep 11, 2024
@fzyzcjy fzyzcjy removed the awaiting Waiting for responses, PR, further discussions, upstream release, etc label Sep 11, 2024
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants