Open abdelaziz-mahdy opened 2 months ago
Hi! Thanks for opening your first issue here! :smile:
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 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. And, even if it cannot handle 100% cases, let it handle a large portion of trivial things would also be beneficial.
Looked at the logs. Seems
[2024-09-19T23:27:04.134Z DEBUG /Users/AbdelazizMahdy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.4.0/src/library/codegen/parser/hir/tree/transformer/pub_use_transformer.rs:155] transform_module_by_pub_use_single skip `PubUseInfo { namespace: Namespace { joined_path: "polars_core::export" }, name_filter: None }` since cannot find mod
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.
Looked at the logs. Seems
[2024-09-19T23:27:04.134Z DEBUG /Users/AbdelazizMahdy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.4.0/src/library/codegen/parser/hir/tree/transformer/pub_use_transformer.rs:155] transform_module_by_pub_use_single skip `PubUseInfo { namespace: Namespace { joined_path: "polars_core::export" }, name_filter: None }` since cannot find mod
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 logs: https://justpaste.it/8v3kt
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