Closed codercengiz closed 1 month ago
Firstly, could you please show flutter_rust_bridge_codegen --version
to check whether it is the latest version?
the last version ❯ flutter_rust_bridge_codegen --version flutter_rust_bridge_codegen 2.4.0
That's weird. We even have it in tests: https://github.com/fzyzcjy/flutter_rust_bridge/blob/4f5cf68f56ed56df62264227d81891744c356403/frb_example/pure_dart/flutter_rust_bridge.yaml#L22
Oops sorry, it is in master branch, not released yet!
https://github.com/fzyzcjy/flutter_rust_bridge/pull/2284
(I originally wanted to gather more changes before releasing a version, e.g. the actively ongoing PRs)
Hmm, I saw Sorry my bad, I updated it to master branch, it works now.
Happy to see it works!
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.
Describe the bug
According to documentation, we can use
rust_features: xyz
in flutter_rust_bridge.yaml, https://cjycode.com/flutter_rust_bridge/guides/custom/codegen/full-list#flutter_rust_bridge_codegen-generate but it gives error.And I checked the doc of crate codegen https://docs.rs/flutter_rust_bridge_codegen/latest/lib_flutter_rust_bridge_codegen/codegen/struct.Config.html There is no the parameter
rust_features
I think the help files are not updated.
How can I set the rust feature?
Steps to reproduce
Hint: A simple way to reproduce is to clone and modify the https://github.com/fzyzcjy/flutter_rust_bridge/tree/master/frb_example/dart_minimal example package according to your needs.
Logs
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of
flutter_rust_bridge_codegen
No response
Flutter info
No response
Version of
clang++
No response
Additional context
No response