I spend my way to RustWeek with playing around on @fasterthanlimeamos facet library and checking out if diesel might use it at some point. I started with setting up something to load values from the database. That seems to be possible, even with retaining most of the compile time checks performed by diesel. The given implementation at least would allow us to provide a (stripped down) replacement of derive(Queryable).

Rust source code showing a minimal diesel example in combination with the `Facet` deriveAn error message from rustc saying that const-eval panicked with the message: Expect the same number of fields in your rust struct as in your query`A rustc error message saying that const eval panicked with the error message: "Mismatching types expected"
0

If you have a fediverse account, you can quote this note from your own instance. Search https://social.weiznich.de/users/weiznich/statuses/114495785461187940 on your instance and quote it. (Note that quoting is not supported in Mastodon.)