cargo-hack icon indicating copy to clipboard operation
cargo-hack copied to clipboard

Keeping compilation artifacts of each run

Open cyqsimon opened this issue 11 months ago • 2 comments

Is there a way for me to make cargo-hack keep the compiled binary after each run? I'm thinking of something like this:

# Assume crate foo has features alpha and bravo
$ cargo hack build --feature-powerset --keep-artifacts
$ ls target/debug/cargo-hack-artifacts
foo
foo-alpha
foo-bravo
foo-alpha-bravo

This would be useful if for example, you would like to upload them as CI artifacts.

If this is currently not possible, I would like to volunteer to work on a PR, thanks.

cyqsimon avatar Apr 01 '24 06:04 cyqsimon