Hello,
I have a project for which some machines have only a subset of features set. Currently, I write
cargo run --no-default-features --features "toto,titi" --bin my_bin
This is a bit cumbersome and I sometimes forget the --no-default-features --features
part.
I was wondering if there is a local config file that I could put in the directory to instruct cargo to use this particular subset of features.
I guess this should be in the documentation, but I didn’t find it.
You should look at the tools I linked.
cargo-make
would just change your flow tocargo make run
,cargo make check
, etc. andjust
has similar benefits. You’d handle the computer-specific logic in there, using a .env per computer if you want.Ok, I’ll look into that then. Thanks.