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

[feat] generate web file in dart if dart_decl_output = None #860

Closed
huang12zheng opened this issue Nov 26, 2022 · 3 comments · Fixed by #861
Closed

[feat] generate web file in dart if dart_decl_output = None #860

huang12zheng opened this issue Nov 26, 2022 · 3 comments · Fixed by #861
Labels
enhancement New feature or request

Comments

@huang12zheng
Copy link
Contributor

Is your feature request related to a problem? Please describe.

generate web file in dart if dart_decl_output = None

let raw_opts = RawOpts {
        // Path of input Rust code
        rust_input: RUST_INPUTS.into_vecs(),
        // Path of output generated Dart code
        dart_output: dart_outputs,
        wasm: true,
        rust_output: Some(rust_outputs),
        // dart_decl_output: Some("../lib/bridge_definitions.dart".into()),   /// would never gen .web
        dart_format_line_length: 120,
        class_name: Some(CLASS_NAMES.into_vecs()),
        // for other options use defaults
        ..Default::default()
    };

ps My final scenario is in a multi-file case

@huang12zheng huang12zheng added the enhancement New feature or request label Nov 26, 2022
@fzyzcjy
Copy link
Owner

fzyzcjy commented Nov 26, 2022

Feel free to PR!

huang12zheng added a commit to huang12zheng/flutter_rust_bridge that referenced this issue Nov 26, 2022
@huang12zheng
Copy link
Contributor Author

huang12zheng commented Nov 28, 2022

  • a more info for ci:

example pure_dart_multi would no use flag dart_decl_output,
and other examples like pure_dart which use flag dart_decl_output

The tests are covered here

@github-actions
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 Dec 13, 2022
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

Successfully merging a pull request may close this issue.

2 participants