fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
https://fzyzcjy.github.io/flutter_rust_bridge/
MIT License
4.29k stars 301 forks source link

rust_lib_crate dependencies framework has been removed at rebuild #2330

Closed niuhuan closed 1 month ago

niuhuan commented 1 month ago

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

I hope to keep the dependencies

I often fail to compile recently, The github actions platform never compiles pass. Like this https://github.com/fzyzcjy/flutter_rust_bridge/issues/2267

This was my previous solution https://github.com/fzyzcjy/flutter_rust_bridge/issues/1790

I had dependency reqwest ,

Until I used flutter clean, I found the problem.

rust_lib_crate dependencies framework has been removed at rebuild. every time flutter clean or rm build/macos

image

Describe the solution you'd like / Describe alternatives you've considered I'm sorry that my macOS skills are very poor, I don't know how to solve this problem. I believe that maybe using sed, backing up some files, or other methods can temporarily solve my problem.

fzyzcjy commented 1 month ago

Hmm, this seems to be related to Cargokit instead of frb core, since frb uses it to compile Rust within Flutter programs.

niuhuan commented 1 month ago

When flutter_rust_bridge call Cargokit? Give me some ideas, please.

fzyzcjy commented 1 month ago

You can check the rust_builder folder for more details. Or, just check cargokit's doc (frb just uses the normal way)

niuhuan commented 1 month ago

If there is a solution in the future I will leave a message here

github-actions[bot] commented 1 month ago

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.