Here’s the situation:
I’m writing an app in Rust.
For the front end, I’m using web browser (talking to backend via websockets).
The current pattern is to have three crates: foobar_client, foobar_server, foobar_shared.
I am wondering if it makes more sense to only have one crate, and use conditional compilation.
Argument for three crates: separation of concerns.
Argument for one crate: the three causes unnecessary split. It’s really a single app at heart.
For those who have dealt with this issue, what did you end up going with?