-
Notifications
You must be signed in to change notification settings - Fork 303
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
Avoid global ffigen #605
Avoid global ffigen #605
Conversation
Right now my code in frb_codegen is very messy, will have to clean it up following your recommandations. |
Good job! Feel free to mark it as "ready for review" when ready for review :) |
Honestly there's a bunch of changes in |
Yes, I totally agree - code refactor is very welcomed! Indeed, when I firstly publish this open source lib, I did not expect it to grow this popular :) So the code style was not that good at that time. And later when it grow bigger and bigger more problems arise.
I guess you mean I review the current code? Sure, I will do it in a minute. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
move ensure_dependencies, ensure_dev_dependencies, guess_toolchain and related structs
also kept the check on its original value at the bottom of frb_codegen method since it conditionally check on freezed and build_runner, which are only available down the scope
rename DependenciesContext into PackageManager, and rename argument name in functions, add Display implementation and change visibility refactor error MissingDep and InvalidDep with named fields
version req comparison is not implemented in semver crate yet
While updating the docs I noticed the same recommendations are literally redundant in 4 different markdown files. I also noticed the CI won't pass because Since I started to remove the code to check dart package version requirements comparison (see discussion above), I guess I can even remove more code. Not sure if it should be marked as ready for review yet ? |
Sure :) Is it possible to use this feature: https://rust-lang.github.io/mdBook/format/mdbook.html#including-files |
Weird... So how do we run other flutter commands? Maybe missing PATH env var or something? |
Surely depends on you :) I will review 8hr later when getting up tomorrow |
Oh ok, exactly what I was thinking then 👌 |
As far as I understand How do you want to address it ? Add |
Well then I'm gonna wait to make some more progress to avoid consuming your Github Action credit and your time altogether. I still have to improve on these points 😅 |
adding flutter toolchain LGTM, since that is really a flutter project :) |
Btw that 8hr has already passed - I reviewed it this morning (about 6hr ago from now). No worries about CI - the definition, "continuous" integration, means it will run for every commit. Big repos like Rust, Flutter, etc, all do that. Btw GitHub supports open source projects by providing free CI for public repos. As for my time - I am happy to reply if you have trouble that cannot be solved easily or need review or need discussions etc :) |
Alright ! A big thanks anyway, that's a pleasure contributing to your repo @fzyzcjy :) |
add flutter setup action to run codegen jobs in ci and post release workflows
add install dependencies step for examples in run codegen workflow
Also a pleasure for me :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Only some nits and I am ready to merge it
flutter sdk already contains dart sdk
remove setup_codegen.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
going to merge once ci pass :) |
Given the another ios test passes, the code should be ok. That ci failure is indeed another quite annoying problem... Feel free to solve it (in another PR)! |
@all-contributors please add @Roms1383 for doc |
I've put up a pull request to add @Roms1383! 🎉 |
Fixes #602.
Checklist
./frb_example/pure_dart
example, more specifically,rust/src/api.rs
anddart/lib/main.dart
../book
folder) are updated.