snaggen to Rust · 1 year agoThis Week in Rust 511this-week-in-rust.orgexternal-linkmessage-square4fedilinkarrow-up121arrow-down10
arrow-up121arrow-down1external-linkThis Week in Rust 511this-week-in-rust.orgsnaggen to Rust · 1 year agomessage-square4fedilink
minus-squaresirdoriuslinkfedilinkarrow-up2·1 year agojust 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.
minus-square0xDEADBEEFCAFElinkfedilinkarrow-up3·1 year agoTake 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.
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.
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.