snaggen@programming.dev to Rust@programming.dev · 1 year agoThis Week in Rust 511this-week-in-rust.orgexternal-linkmessage-square4fedilinkarrow-up121arrow-down10cross-posted to: rust@lemmit.online
arrow-up121arrow-down1external-linkThis Week in Rust 511this-week-in-rust.orgsnaggen@programming.dev to Rust@programming.dev · 1 year agomessage-square4fedilinkcross-posted to: rust@lemmit.online
minus-squaresirdorius@programming.devlinkfedilinkarrow-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-square0xDEADBEEFCAFE@programming.devlinkfedilinkarrow-up2·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.