@fzzr Yeah, you’re right it’s currently a build dependency. This is also why nix-shell
is used, and I felt the developer experience was OK as such.
The reason it’s a build dependency is through the sqlx
dependency, which on build time checks the SQL schema and creates type safe queries. This is a feature I like very much.
Not sure if there’s another dependency that you’d recommend? I’m fairly new to Rust as well as their ecosystem, it seems you have more experience, do you have a suggestion to resolve this issue?
👌 Understood.
I’ll think about it and try to make more flexible build solution.
IMHO, Required running database to just build the project - is a bad (terrible, really) practice.
That way making alive db as build-dependency,
But really it’s a execution/run-dependency.