Wraps cargo to move target directories to a central location [super experimental]
APACHE-2.0 License
Wraps cargo to move target directories to a central location [super experimental]
To use,
cargo install --git https://github.com/sunshowers/targo --bin targo
Then, add this to your .zshrc/.bash_profile:
alias cargo='targo wrap-cargo'
To bypass targo, prefix the command with a backslash on the command line (should work in all Bourne shells at least):
$ \cargo build
See this comment on rust-lang/cargo for the execution model and considerations as of 2022-10-22.
targo-like behavior is currently Rust RFC 3371! Hopefully it will be stabilized and eventually targo will go away.
This MVP works for me and I only plan to add features as I need them. If you're a Rust developer who cares about this issue, and would like to help drive this project forward, please reach out to me at the email I use for my git commits with:
There's plenty to do: