How can I modularize command handler generation? #13085
Unanswered
TylerJMcLean
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As the title suggests, I am looking to modularize the creation of command handlers so that I don't bloat the Tauri builder setup with a potentially large amount of commands that need to be accessible from the front-end. I know you can't call invoke_handler more than once per a comment on a similar thread from Fabian but I don't want to call it multiple times anyways. I want to just have a way to split the creation of the handlers or a way to make a combination of the two. Ideally it would look something like the following
module_1.rs
module_2.rs
lib.rs
Obviously I'm trivializing some details here for the sake of getting my point across but if anyone knows how to do something similar I'd be forever grateful!
Beta Was this translation helpful? Give feedback.
All reactions