Closed Larpoux closed 4 months ago
It is possible that the default generated code for a quite complex package like cpal cannot be compiled with 100% automation without any manual configurations. Thus, we may need to look at the errors and fix them (one quick way is to firstly #[frb(ignore)]
all things with error, and then add back.
Btw curious why do you need cpal (maybe need some lower level functionality)? IIRC last time you mentioned web-audio-api is good to be a API.
It is possible that I have to need things inside CPAL. CPAL is a layer under web-audio-api-rs. But I don't really need to access directly this lib from dart. I can write the function I need in rust. I tried to generate just by curiosity and because I master dart much better than rust. Forget this requirement....
I see. Yes, if you only need a small portion of the full API, then it may be quicker to write down a few lines simple wrapper in Rust.
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 try to generate a dart interface to cpal
Do I have to install dummy mod.rs in rust/src/third_party/cpal ? I get the following errors when compiling dart :
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