cargo-binstall/crates
Jiahao XU 83b2de3ea2
Enforce strict strategies parsing rule: Reject duplicate strategy in --strategies (#545)
`cargo-binstall` should reject duplicate strategy in `--strategies` as it is illegal input and it cannot be interpreted reasonably.

* Reject duplicate strategy in `--strategies`
* Optimize `compute_resolvers`: Use `Vec::retain`
   instead of `Iterator::filter` plus collecting into `Vec`.
* Optimize `compute_resolvers`: Reject `strategies.len() > Strategy::COUNT`
* Improve err msg for cases where user disabled all strategies
* Simplify `BinstallError::InvalidStrategies`: Takes `&'static str`
   instead of `&'static &'static str` since other variants are larger than 8B.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-11-21 12:02:58 +11:00
..
bin Enforce strict strategies parsing rule: Reject duplicate strategy in --strategies (#545) 2022-11-21 12:02:58 +11:00
binstalk Enforce strict strategies parsing rule: Reject duplicate strategy in --strategies (#545) 2022-11-21 12:02:58 +11:00
binstalk-downloader Bump reqwest from 0.11.12 to 0.11.13 (#538) 2022-11-20 00:21:50 +11:00
binstalk-manifests Optimizations plus bug fix (#541) 2022-11-17 23:59:35 +00:00
binstalk-types Refactor: Extract new crate binstalk-types plus other misc refactor and optimization (#535) 2022-11-17 13:46:27 +13:00
detect-targets Use CARGO env variable if present (#453) 2022-10-02 04:52:25 +13:00
detect-wasi release: detect-wasi v1.0.0 (#332) 2022-09-04 13:45:28 +00:00
fs-lock release: fs-lock v0.1.0 (#339) 2022-09-04 16:04:52 +00:00
normalize-path release: normalize-path v0.2.0 (#509) 2022-11-04 17:30:21 +11:00