Skip to content

Cannot run Mutants on complex build setup #483

Discussion options

You must be logged in to vote

If the binary and library are in different packages you should be able to run cargo mutants -p whateverlib?

If they're in the same package then it might be more complicated.

mutants.out/debug.log will show what command it's running, I guess something like cargo test --no-run --verbose [email protected]. Does this fail in your package, on the host?

If the binary fails to build on the host and you want it in the same package then perhaps you could use https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-required-features-field so that the binary can be turned on only on places where it will work?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elizabethshirley
Comment options

Answer selected by elizabethshirley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants