Closed K-Finlay closed 1 year ago
Hi! Thanks for opening your first issue here! :smile:
[SEVERE] : /tmp/.tmpNnvIha.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]
thus
https://github.com/fzyzcjy/flutter_rust_bridge/issues?q=%27stdbool.h%27+file+not+found
It looks like this is an issue with ffigen. For anyone else who has the same problem, the following command linked here resolved it for me: https://github.com/dart-lang/native/issues/338
Closing this issue.
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
I am using the template from https://github.com/Desdaemon/flutter_rust_bridge_template Running
flutter_rust_bridge_codegen
works just fine. However, there is an issue with the generated code, which causes a compilation error when runningflutter run
Integrating flutter_rust_bridge into an existing project yields the same result.
Codegen logs with
RUST_LOG=debug
environment variableTo Reproduce
Download the template and cd into it. Run
flutter_rust_bridge_codegen --rust-input native/src/api.rs --dart-output ./lib/bridge_generated.dart --dart-decl-output ./lib/bridge_definitions.dart
Followed byflutter run
.Expected behavior
The Flutter application compiles and runs.
Generated binding code
OS
Nobara Linux
Version of
flutter_rust_bridge_codegen
1.81.0
Flutter info
Version of
clang++
15.0.7
Version of
ffigen
8.0.2
Additional context
No response