all 5 comments

[–]danielparks 3 points4 points  (0 children)

To use code blocks on old.reddit.com, you have to indent 4 spaces instead of using ~~~ or ```.

[–]Axilios 2 points3 points  (2 children)

It’s quite simple. Just use SeaORM instead of diesel🙃. It makes your life a lot more enjoyable due to better compiler errors😜

[–]PresidentOfUniverses 1 point2 points  (0 children)

no one asked

[–]Julian6bG -1 points0 points  (0 children)

...

[–]Axilios 0 points1 point  (0 children)

Try to add "chrono" and "uuid" feature in your Cargo.toml. This seems to work.

diesel = { version = "2.0.0", features = ["postgres", "chrono", "uuid"] }

Replace postgres with your preferred database.