DEV Community

loading...

Discussion on: Evidence of Crystal's power

Collapse
maan2003 profile image
Maan2003

github.com/diesel-rs/diesel/blob/m...
😆 8.5K lines.

did you account for unit tests that exist inside the same files as main code

regarding http framework, checkout rocket you will love how nice api it provides.

Collapse
yujiri8 profile image
Ryan Westlund Author

did you account for unit tests that exist inside the same files as main code

Now that you mention it, no. If those are in there, they're probably being included as main code for Diesel.

regarding http framework, checkout rocket you will love how nice api it provides.

I did look into both Rocket and Actix-web when I was hoping to use Rust for my next project. Both of them seemed decent. I had a couple gripes with each, but ultimately the reason I ended up choosing Crystal for it instead was Diesel (not just that it doesn't have everything yet, but the issue of requiring multiple copies of each model definition, and the authors seem to have a different vision of what should be in a ORM than I do).