Using rustbricks for fullstack app #2374
-
I would like to use the
and
and
I want to do the querying on the server side, obviously, but I suspect that I'm doing something wrong in regards to the frontend. Just to be clear, I only include the crate in Anyone has some ideas of what could be wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
The
mio
crate is likely pulled in by tokio which is not compatible with wasm. You can make the dependency optional and enable it in the server feature if you only need to use it on the server. Here is an example of that setup with tokio: https://github.com/DioxusLabs/dioxus/blob/main/packages/fullstack/examples/axum-auth/Cargo.toml#L14