Commit 302d41e
committed
xtask: accept all i3status-rs feature combinations to avoid rebuilds
Currently, xtask depends on i3status-rs with only the default features
enabled. Running xtask then causes unnecessary rebuilds, if i3status-rs
was built with another configuration.
We can avoid these by forwarding the features of i3status-rs to xtask,
applying them to both packages (resolver >= "2") and ensuring a
consistent environment between Cargo invocations.
For example:
```
myflags=(
--release
--features notmuch
--no-default-features
)
cargo build ${myflags[@]} --package i3status-rs --package xtask
cargo run ${myflags[@]} --package xtask -- generate-manpage
```
See-also: https://doc.rust-lang.org/cargo/reference/features.html#resolver-version-2-command-line-flags
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>1 parent 0658ffa commit 302d41e
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
9 | 18 | | |
10 | 19 | | |
11 | 20 | | |
12 | | - | |
| 21 | + | |
0 commit comments