-
Notifications
You must be signed in to change notification settings - Fork 307
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
third party lib, doesnt throw errors nor generate files #2304
Comments
Hi! Thanks for opening your first issue here! 😄 |
Hi, could you please provide a minimal reproducible sample? Btw, polars may be too complex to be auto scanned by the experimental "scan whole third party package" feature. And you may be interested in: https://github.com/Desdaemon/polars_dart |
this is an example repo, https://github.com/abdelaziz-mahdy/polars_dart i would love to have the auto scan working in general since that will make migration rust crates binding so much easier and that will improve the dart platform in general, so i am interested to make it work |
I think so, that would be quite convenient. |
Looked at the logs. Seems
i.e. the polars package is almost empty and only exports polars_core. On the other hand, frb currently has not implemented such complex cross-multiple-third-party-crate-import things. |
Oh okay, guess I will wait for it to get fixed when you have time to do so, Or create my own API around it Thank you for the awesome package and looking forward to scanning to be improved |
You are welcome! I guess this may be a bit nontrivial so cannot estimate the time to implement it. |
i was trying ndarray and faced the same issue, dont know if they are related or not but i wanted to share it incase it helps https://github.com/abdelaziz-mahdy/rust_ndarray_dart |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Do you think it's doable? Or should we close the issue? |
I think polars may be really too complex, and a semi-manual mapping may be needed... But maybe in the long future we will have our codegen so strong that can auto handle it. |
is it the same for ndarray? and if there is resources or guidance on how i can improve it i would love to do so |
Yes, I guess ndarray is also too complicated to be auto translated... There is doc but is mainly about how to use it. To modify the auto translation logic, the main source may be looking at the code. |
okay noted, will look into it when i got time and if i am able to contribute will open a pr, thank you for the awesome package <3 |
You are welcome and looking forward to it! |
Describe the bug
i am trying to create mapping to polars, but the generate function works but doesnt create the mapping so i am confused
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.
rust_input: polars
cd rust && cargo add polars && cd ..
flutter_rust_bridge_codegen generate
Logs
Expected behavior
the dart binding should get generated
Generated binding code
OS
macos
Version of
flutter_rust_bridge_codegen
2.4.0
Flutter info
Version of
clang++
clang --version Apple clang version 16.0.0 (clang-1600.0.26.3) Target: arm64-apple-darwin24.0.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Additional context
No response
The text was updated successfully, but these errors were encountered: