nix-community / crate2nix

rebuild only changed crates in CI with crate2nix and nix
https://nix-community.github.io/crate2nix/
Apache License 2.0
352 stars 83 forks source link

How to achieve `cargo build --bins --lib --tests`? #196

Open doivosevic opened 3 years ago

doivosevic commented 3 years ago

Hey, I've been rereading these docs for a while now and I cannot figure out which override to use to build the tests. I do not want to run them. I can't find any sensible doc examples for the parameters.

I wish to achieve the same as in the issue title, that is: cargo build --bins --lib --tests. How would I write the config to achieve this in the spirit of this API?