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

rust_input version specification #2311

Closed
poborin opened this issue Sep 24, 2024 · 4 comments
Closed

rust_input version specification #2311

poborin opened this issue Sep 24, 2024 · 4 comments
Labels
awaiting Waiting for responses, PR, further discussions, upstream release, etc experimental feature Issues related to experimental instead of stable features wontfix This will not be worked on

Comments

@poborin
Copy link

poborin commented Sep 24, 2024

I have a project that uses tungstenite. There are a few dependencies that are using different versions:
[email protected]
[email protected]
[email protected]

When I add a tungstenite crate to a rust_input parameter in flutter_rust_bridge.yaml, the generate command fails with the following error:

There are multiple `tungstenite` packages in your project, and the specification `tungstenite` is ambiguous.
Please re-run this command with one of the following specifications:
  [email protected]
  [email protected]
  [email protected]

Describe the solution you'd like
I can specify a version in the flutter_rust_bridge.yaml as such:

rust_input: crate::api, [email protected]
@poborin poborin added the enhancement New feature or request label Sep 24, 2024
Copy link

welcome bot commented Sep 24, 2024

Hi! Thanks for opening your first issue here! 😄

@fzyzcjy fzyzcjy changed the title rust_input version specification [experimental-feature] rust_input version specification Sep 24, 2024
@fzyzcjy
Copy link
Owner

fzyzcjy commented Sep 24, 2024

Looks reasonable and feel free to PR for this! (Since this is experimental feature, I may not have a lot of time to handle this soon.)

Btw, briefly looked at https://github.com/snapview/tungstenite-rs, and I guess the syntax may (or may not) be too complex to be auto scanned. Thus, I suggest to firstly create an empty project and try whether frb can handle that package, and if yes, work on the multi-version thing.

@fzyzcjy fzyzcjy added the awaiting Waiting for responses, PR, further discussions, upstream release, etc label Sep 24, 2024
@fzyzcjy fzyzcjy changed the title [experimental-feature] rust_input version specification rust_input version specification Nov 5, 2024
@fzyzcjy fzyzcjy added experimental feature Issues related to experimental instead of stable features and removed enhancement New feature or request labels Nov 5, 2024
Copy link

stale bot commented Jan 4, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jan 4, 2025
@stale stale bot closed this as completed Jan 11, 2025
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 Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
awaiting Waiting for responses, PR, further discussions, upstream release, etc experimental feature Issues related to experimental instead of stable features wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants