You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thank you for the great project! I really like a lot of what I see here. I'm new to rust, and for my first real project I'm building an app with Dioxus. One thing I've been running into with torii is that since I'm building a fullstack application with the UI in rust that gets compiled to WASM, I have to keep defining my own structs instead of using everything torii-core provides, because torii-core depends on tokio.
Many dependencies like tokio cannot be compiled to WebAssembly, and thus should only be built for the server. If these dependencies are enabled when building a WASM bundle, you will receive cryptic compilation errors. As such, we need to take care not to accidentally add server-only dependencies to our client app.
It would be really awesome if torii-core was just the types, and the implementations that use tokio are their own packages. That way I could pass things like torii_core::User into my wasm bundles.
Again, maybe there's some rust tricks I don't know yet - and I know the burden of open-source is heavy, so I hope I don't come across as expecting free support on this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi! Thank you for the great project! I really like a lot of what I see here. I'm new to rust, and for my first real project I'm building an app with Dioxus. One thing I've been running into with torii is that since I'm building a fullstack application with the UI in rust that gets compiled to WASM, I have to keep defining my own structs instead of using everything torii-core provides, because torii-core depends on tokio.
It would be really awesome if torii-core was just the types, and the implementations that use tokio are their own packages. That way I could pass things like
torii_core::Userinto my wasm bundles.Again, maybe there's some rust tricks I don't know yet - and I know the burden of open-source is heavy, so I hope I don't come across as expecting free support on this.
All reactions