Ok, got a question about Rust project structure:

I'm working on a web app, so I've set up my project with a crate for containing items which can be shared between the front end and the server... I'm also using diesel to have the project integrate with MariaDB, which I've worked out, doesn't implement WASM bundling (which makes sense).

The question is: Should I keep the schema and model types in that shared space...?

As it should be possible to isolate the diesel dependency behind build options, having these model types in this shared space, would allow them to be shared between the server and the browser, without the need to convert between intermediary types... so the primary issue as a result, is using build options to isolate any implementations dependant on diesel...