How to keep my domain model and diesel generated macros in two different crates? I need the models in my wasm crate in tauri leptos app. #3441
Unanswered
Salman-Sali
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Surely the answer to "Is it possible to move some code into another crate?" is "Yes." I don't think anyone (in any of the three venues in which you posted this) can give you more concrete help, given how broad the question is. The only response to "Is this the right approach?" for an abstract situation like this is to ask in response: What is/isn't working for you about it, so far? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently I have my infrastructure (domain models + diesel code) in one crate, and a shared models crate which sits in between the wasm(tauri leptos) and the infrastructure crate. I am wondering if this is the right approach.
Is it possible to move the diesel generated macros to another crate? Or is there a better approach than the shared models crate.
Cross posted from:
https://www.reddit.com/r/rust/comments/1hsyjax/how_to_keep_my_domain_model_and_diesel_generated/
https://users.rust-lang.org/t/how-to-keep-my-domain-model-and-diesel-generated-macros-in-two-different-crates-i-need-the-models-in-my-wasm-crate-in-tauri-leptos-app/123472/3
Beta Was this translation helpful? Give feedback.
All reactions