-
Notifications
You must be signed in to change notification settings - Fork 305
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
[Bug] Can't create typedef from non-function type. #334
Comments
Hi! Thanks for opening your first issue here! 😄 |
You are welcome!
Your pubspec.yaml specify too low SDK constraint IMHO. At least 2.13 |
Thanks @fzyzcjy - that did the job! 😁 I also had to ensure I loaded from an |
🎉 |
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
Attempting to load the dynamic library yields these errors:
Codegen logs with
RUST_LOG=debug
env variableTo Reproduce
The code is here: https://github.com/tmpfs/rust-flutter
Run either
dart run dart_test.dart
orflutter test
to generate the errors.Expected behavior
I expect the generated dart bindings to not error.
Generated binding code
https://github.com/tmpfs/rust-flutter/blob/main/lib/bridge_generated.dart
OS
Darwin sky.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64
Version of
flutter_rust_bridge_codegen
1.16.0
Flutter info
Version of
clang++
Homebrew clang version 13.0.0 Target: arm64-apple-darwin21.2.0 Thread model: posix InstalledDir: /opt/homebrew/opt/llvm/bin
Version of
cbindgen
cbindgen 0.20.0
Version of
ffigen
4.1.3
- I think i had to go rooting around the global packages directory to find this out.Additional context
I also tried to build
flutter_rust_bridge_codegen
from source but that yielded a panic unwrapping an option (source_graph.rs
line 320).I tried running the
integration_test
tests in thewith_flutter
example but there is not enough information for me to see if I can reproduce it which I think is related to a lack of documentation on how to get the example up and running.Thanks for your work on this I would really like to get this working across all platforms so I can use Rust in my cross-platform UI 🙏
The text was updated successfully, but these errors were encountered: