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

Support Dart only #19

Open
iapicca opened this issue Sep 2, 2024 · 2 comments
Open

Support Dart only #19

iapicca opened this issue Sep 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@iapicca
Copy link

iapicca commented Sep 2, 2024

DESCRIPTION

it would be great to be able to use this package in backend,
but at the time of writing rHTTP depends on flutter
so it can't be used

as far as I know flutter_rust_bridge is "flutter" only by name
and can be used in pure dart implementation

PROPOSAL

support the creation of dart server based on rHTTP by provide a "pure dart" implementation

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

Tienisto commented Sep 2, 2024

Yes, it seems to be possible according to https://cjycode.com/flutter_rust_bridge/guides/miscellaneous/pure-dart

I am wondering if it still works on Flutter because flutter/flutter#129757 is not resolved and dart-lang/sdk#50565 is only available via experimental flag.

If we are lucky, then adding a build.dart file (https://github.com/fzyzcjy/flutter_rust_bridge/blob/master/frb_example/pure_dart/build.dart) is enough to enable experimental Dart support while still maintaining existing Flutter support.

@Tienisto
Copy link
Owner

Tienisto commented Sep 4, 2024

I tried to add build.dart into the project but flutter_rust_bridge_utils is not published on pub.dev yet.

Ref: fzyzcjy/flutter_rust_bridge#2274

@Tienisto Tienisto changed the title [feature request] support server dart application Support Dart only Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants