mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
fix leon
& binstalk-downloader
bug relating to features (#1153)
- ci: Check feat powerset of leon & binstalk-downloader in `ci.yml` - fix leon feature `cli`: Enable dep `miette` in feature `cli` - fix binstalk-downloader when default feature is disabled and no other tls related feature is enabled (breaking change due to replace of `tls::Version` with newtype `TLSVersion`). Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
5c4a542de5
commit
40efe02e34
8 changed files with 111 additions and 65 deletions
|
@ -8,7 +8,7 @@ use std::{
|
|||
};
|
||||
|
||||
use binstalk::{
|
||||
helpers::remote::tls::Version,
|
||||
helpers::remote,
|
||||
manifests::cargo_toml_binstall::PkgFmt,
|
||||
ops::resolve::{CrateName, VersionReqExt},
|
||||
};
|
||||
|
@ -293,11 +293,11 @@ pub enum TLSVersion {
|
|||
Tls1_3,
|
||||
}
|
||||
|
||||
impl From<TLSVersion> for Version {
|
||||
impl From<TLSVersion> for remote::TLSVersion {
|
||||
fn from(ver: TLSVersion) -> Self {
|
||||
match ver {
|
||||
TLSVersion::Tls1_2 => Version::TLS_1_2,
|
||||
TLSVersion::Tls1_3 => Version::TLS_1_3,
|
||||
TLSVersion::Tls1_2 => remote::TLSVersion::TLS_1_2,
|
||||
TLSVersion::Tls1_3 => remote::TLSVersion::TLS_1_3,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue