Closed skamansam closed 2 weeks ago
Hi! Thanks for opening your first issue here! :smile:
Hmm, does rust_input: crate::api
work for you?
Note that you need some functions in a file, otherwise that file may be skipped. Thus try to add things like pub fn f(){}
to your e.g. rectangles.rs
or whatever file that you find it missing.
Close since inactivity, but feel free to reopen if you have any questions!
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.
Is your feature request related to a problem? Please describe. I have an app where I have a full API in rust and a bunch of widgets I want to use in the flutter app. My directory is such:
rust ├── Cargo.lock ├── Cargo.toml └── src ├── api │ ├── mod.rs │ ├── rectangles │ │ └── widgets.rs │ ├── rectangles.rs │ ├── my_company │ │ └── api │ │ ├── sample_doc_pic.png │ │ └── simple.rs │ │ └── full.rs │ ├── my_company.rs │ └── simple.rs ├── frb_generated.rs └── lib.rs
Where the
my_company
module holds two different apis, andrectangles
holds a bunch of iced widgets. NOTE: According to the rust docs,mod.rs
is deprecated, and one should use the<module>.rs
syntax going forward. Here is the makeup of my modules:file: rust/src/api/mod.rs
file: rust/src/api/my_company.rs
file: rectangels.rs
file:
Describe the solution you'd like I would like this to generate two files:
lib/src/rust/api/my_company/api/simple.dart
andlib/src/rust/api/my_company/rectangles.dart
and do all the necessary bindings for bopth of them. Currently, I can only get the first one built.Describe alternatives you've considered I have tried all manner of adding the last one to the project, including what your documentation says to do by adding it to a list in the config yaml:
Additional context I am a bit new to rust, but I have a few projects under my belt. I believe I am following all the documentation but it doesn't seem to work accordingly. I know there may be some things i am missing, but I can't find it anywhere.