what do you think about xtask? will it replace cargo-make? #717
Replies: 2 comments 1 reply
-
I think xtasks are pretty cool. xtasks and cargo-make take a very different path.
The biggest pro i see in xtasks, its bundled with the project. cargo-make only bundles the makefile.toml with it, but the binary is installed separately. again, all of the above is my personal view. i'm SUPER bias since i wrote cargo-make based on my vision of a task runner after working with many tasks runners in other platforms like maven, npm, grunt, gulp, shell files, makefiles, cmake and so on... |
Beta Was this translation helpful? Give feedback.
-
just checked - aliases work workspace somewhat. not tested xtask but yeah - kind of will need copy paste some for sure. |
Beta Was this translation helpful? Give feedback.
-
xtask is part of main repo and based on aliases (which are part of cargo):
https://github.com/rust-lang/rust-analyzer/blob/master/xtask/src/main.rs
if .cargo/config supports workspace sharing of aliases (if not, there is some work for sharing stuff in root toml).
then seems solution is very good and seems way ecosystem will go.
other things i see that people stick to usual old school make or wrap into nix (nix by default uses make). so having usual make makes you nix compatible too.
Beta Was this translation helpful? Give feedback.
All reactions