This Week in Rust 511 (this-week-in-rust.org)
from snaggen@programming.dev to rust@programming.dev on 07 Sep 2023 04:54
https://programming.dev/post/2671887

#rust

threaded - newest

robinm@programming.dev on 07 Sep 2023 07:33 next collapse

I did not saw Elevate Your Rust Code: The Art of Separating Actions and Calculations in my feed before. It was a good read

DrDeadCrash@programming.dev on 07 Sep 2023 12:18 collapse

Thank you, that was a good read.

sirdorius@programming.dev on 07 Sep 2023 08:03 collapse

just is a really cool addition to cargo projects. I would have liked it if cargo had custom tasks like npm or gradle, but a make style runner with saner configuration is good as well.

0xDEADBEEFCAFE@programming.dev on 07 Sep 2023 14:50 collapse

Take a look at xtask. It essentially relies on the fact that you can add cargo aliases in local files in order to execute specific packages.

When I create a workspace that has some form of code generation I like to overwrite cargo gen to whatever is doing the generating.