mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
build(deps): bump compact_str from 0.7.1 to 0.8.0 in the deps group (#1817)
* build(deps): bump compact_str from 0.7.1 to 0.8.0 in the deps group Bumps the deps group with 1 update: [compact_str](https://github.com/ParkMyCar/compact_str). Updates `compact_str` from 0.7.1 to 0.8.0 - [Changelog](https://github.com/ParkMyCar/compact_str/blob/main/CHANGELOG.md) - [Commits](https://github.com/ParkMyCar/compact_str/commits) --- updated-dependencies: - dependency-name: compact_str dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * Fix compilation error and deprecations Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Use `CompactString::const_new` when possible Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
a92ad4952f
commit
0fe605f7f0
15 changed files with 45 additions and 58 deletions
|
@ -25,7 +25,7 @@ pkg-fmt = "zip"
|
|||
binstalk = { path = "../binstalk", version = "0.26.1", default-features = false }
|
||||
binstalk-manifests = { path = "../binstalk-manifests", version = "0.13.0" }
|
||||
clap = { version = "4.5.3", features = ["derive", "env"] }
|
||||
compact_str = "0.7.0"
|
||||
compact_str = "0.8.0"
|
||||
dirs = "5.0.1"
|
||||
file-format = { version = "0.25.0", default-features = false }
|
||||
home = "0.5.9"
|
||||
|
|
|
@ -13,7 +13,7 @@ license = "GPL-3.0-only"
|
|||
[dependencies]
|
||||
atomic-file-install = { version = "1.0.5", path = "../atomic-file-install" }
|
||||
binstalk-types = { version = "0.7.0", path = "../binstalk-types" }
|
||||
compact_str = { version = "0.7.0", features = ["serde"] }
|
||||
compact_str = { version = "0.8.0", features = ["serde"] }
|
||||
leon = "3.0.0"
|
||||
miette = "7.0.0"
|
||||
normalize-path = { version = "0.2.1", path = "../normalize-path" }
|
||||
|
|
|
@ -30,7 +30,7 @@ async_zip = { version = "0.0.17", features = [
|
|||
binstalk-types = { version = "0.7.0", path = "../binstalk-types" }
|
||||
bytes = "1.4.0"
|
||||
bzip2 = "0.4.4"
|
||||
compact_str = "0.7.0"
|
||||
compact_str = "0.8.0"
|
||||
flate2 = { version = "1.0.28", default-features = false }
|
||||
futures-util = "0.3.30"
|
||||
futures-io = "0.3.30"
|
||||
|
|
|
@ -16,7 +16,7 @@ binstalk-downloader = { version = "0.11.5", path = "../binstalk-downloader", def
|
|||
binstalk-git-repo-api = { version = "0.3.0", path = "../binstalk-git-repo-api" }
|
||||
binstalk-types = { version = "0.7.0", path = "../binstalk-types" }
|
||||
bytes = "1.4.0"
|
||||
compact_str = { version = "0.7.0" }
|
||||
compact_str = { version = "0.8.0" }
|
||||
either = "1.11.0"
|
||||
itertools = "0.13.0"
|
||||
leon = "3.0.0"
|
||||
|
|
|
@ -13,7 +13,7 @@ license = "Apache-2.0 OR MIT"
|
|||
binstalk-downloader = { version = "0.11.5", path = "../binstalk-downloader", default-features = false, features = [
|
||||
"json",
|
||||
] }
|
||||
compact_str = "0.7.0"
|
||||
compact_str = "0.8.0"
|
||||
percent-encoding = "2.2.0"
|
||||
serde = { version = "1.0.163", features = ["derive"] }
|
||||
serde-tuple-vec-map = "1.0.1"
|
||||
|
|
|
@ -338,10 +338,10 @@ mod test {
|
|||
|
||||
pub(super) const RELEASE: GhRelease = GhRelease {
|
||||
repo: GhRepo {
|
||||
owner: CompactString::new_inline("cargo-bins"),
|
||||
repo: CompactString::new_inline("cargo-binstall"),
|
||||
owner: CompactString::const_new("cargo-bins"),
|
||||
repo: CompactString::const_new("cargo-binstall"),
|
||||
},
|
||||
tag: CompactString::new_inline("v0.20.1"),
|
||||
tag: CompactString::const_new("v0.20.1"),
|
||||
};
|
||||
|
||||
pub(super) const ARTIFACTS: &[&str] = &[
|
||||
|
@ -375,10 +375,10 @@ mod test {
|
|||
|
||||
pub(super) const RELEASE: GhRelease = GhRelease {
|
||||
repo: GhRepo {
|
||||
owner: CompactString::new_inline("rustsec"),
|
||||
repo: CompactString::new_inline("rustsec"),
|
||||
owner: CompactString::const_new("rustsec"),
|
||||
repo: CompactString::const_new("rustsec"),
|
||||
},
|
||||
tag: CompactString::new_inline("cargo-audit/v0.17.6"),
|
||||
tag: CompactString::const_new("cargo-audit/v0.17.6"),
|
||||
};
|
||||
|
||||
#[allow(unused)]
|
||||
|
@ -417,7 +417,7 @@ mod test {
|
|||
]
|
||||
.into_iter()
|
||||
.for_each(|url| {
|
||||
let url = Url::parse(&url).unwrap();
|
||||
let url = Url::parse(url).unwrap();
|
||||
assert_eq!(
|
||||
GhRepo::try_extract_from_url(&url)
|
||||
.unwrap()
|
||||
|
@ -545,16 +545,16 @@ mod test {
|
|||
#[tokio::test]
|
||||
async fn rate_limited_test_get_repo_info() {
|
||||
const PUBLIC_REPOS: [GhRepo; 1] = [GhRepo {
|
||||
owner: CompactString::new_inline("cargo-bins"),
|
||||
repo: CompactString::new_inline("cargo-binstall"),
|
||||
owner: CompactString::const_new("cargo-bins"),
|
||||
repo: CompactString::const_new("cargo-binstall"),
|
||||
}];
|
||||
const PRIVATE_REPOS: [GhRepo; 1] = [GhRepo {
|
||||
owner: CompactString::new_inline("cargo-bins"),
|
||||
repo: CompactString::new_inline("private-repo-for-testing"),
|
||||
owner: CompactString::const_new("cargo-bins"),
|
||||
repo: CompactString::const_new("private-repo-for-testing"),
|
||||
}];
|
||||
const NON_EXISTENT_REPOS: [GhRepo; 1] = [GhRepo {
|
||||
owner: CompactString::new_inline("cargo-bins"),
|
||||
repo: CompactString::new_inline("ttt"),
|
||||
owner: CompactString::const_new("cargo-bins"),
|
||||
repo: CompactString::const_new("ttt"),
|
||||
}];
|
||||
|
||||
init_logger();
|
||||
|
@ -610,12 +610,12 @@ mod test {
|
|||
)];
|
||||
const NON_EXISTENT_RELEASES: [GhRelease; 1] = [GhRelease {
|
||||
repo: GhRepo {
|
||||
owner: CompactString::new_inline("cargo-bins"),
|
||||
repo: CompactString::new_inline("cargo-binstall"),
|
||||
owner: CompactString::const_new("cargo-bins"),
|
||||
repo: CompactString::const_new("cargo-binstall"),
|
||||
},
|
||||
// We are currently at v0.20.1 and we would never release
|
||||
// anything older than v0.20.1
|
||||
tag: CompactString::new_inline("v0.18.2"),
|
||||
tag: CompactString::const_new("v0.18.2"),
|
||||
}];
|
||||
|
||||
init_logger();
|
||||
|
|
|
@ -197,7 +197,7 @@ mod test {
|
|||
assert_matches!(deserialize("RATE_LIMITED"), GraphQLErrorType::RateLimited);
|
||||
assert_matches!(
|
||||
deserialize("rATE_LIMITED"),
|
||||
GraphQLErrorType::Other(val) if val == CompactString::new("rATE_LIMITED")
|
||||
GraphQLErrorType::Other(val) if val == CompactString::const_new("rATE_LIMITED")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ license = "Apache-2.0 OR MIT"
|
|||
[dependencies]
|
||||
beef = { version = "0.5.2", features = ["impl_serde"] }
|
||||
binstalk-types = { version = "0.7.0", path = "../binstalk-types" }
|
||||
compact_str = { version = "0.7.0", features = ["serde"] }
|
||||
compact_str = { version = "0.8.0", features = ["serde"] }
|
||||
fs-lock = { version = "0.1.3", path = "../fs-lock" }
|
||||
home = "0.5.9"
|
||||
miette = "7.0.0"
|
||||
|
|
|
@ -210,7 +210,7 @@ root = "/some/path" # `cargo install` destination directory
|
|||
);
|
||||
|
||||
let http = config.http.unwrap();
|
||||
assert_eq!(http.proxy.unwrap(), CompactString::new_inline("host:port"));
|
||||
assert_eq!(http.proxy.unwrap(), CompactString::const_new("host:port"));
|
||||
assert_eq!(http.timeout.unwrap(), 30);
|
||||
assert_eq!(http.cainfo.unwrap(), Path::new("root").join("cert.pem"));
|
||||
|
||||
|
@ -218,7 +218,7 @@ root = "/some/path" # `cargo install` destination directory
|
|||
assert_eq!(env.len(), 3);
|
||||
assert_eq!(
|
||||
env.get("ENV_VAR_NAME").unwrap(),
|
||||
&Env::Value(CompactString::new("value"))
|
||||
&Env::Value(CompactString::const_new("value"))
|
||||
);
|
||||
assert_eq!(
|
||||
env.get("ENV_VAR_NAME_2").unwrap(),
|
||||
|
|
|
@ -18,7 +18,7 @@ binstalk-downloader = { version = "0.11.5", path = "../binstalk-downloader", def
|
|||
] }
|
||||
binstalk-types = { version = "0.7.0", path = "../binstalk-types" }
|
||||
cargo-toml-workspace = { version = "6.0.0", path = "../cargo-toml-workspace" }
|
||||
compact_str = { version = "0.7.0", features = ["serde"] }
|
||||
compact_str = { version = "0.8.0", features = ["serde"] }
|
||||
leon = "3.0.0"
|
||||
miette = "7.0.0"
|
||||
normalize-path = { version = "0.2.1", path = "../normalize-path" }
|
||||
|
|
|
@ -96,10 +96,10 @@ pub(super) fn crate_prefix_components(
|
|||
|
||||
match (chars.next(), chars.next(), chars.next(), chars.next()) {
|
||||
(None, None, None, None) => Err(RegistryError::NotFound(crate_name.into())),
|
||||
(Some(_), None, None, None) => Ok((CompactString::new("1"), None)),
|
||||
(Some(_), Some(_), None, None) => Ok((CompactString::new("2"), None)),
|
||||
(Some(_), None, None, None) => Ok((CompactString::const_new("1"), None)),
|
||||
(Some(_), Some(_), None, None) => Ok((CompactString::const_new("2"), None)),
|
||||
(Some(ch), Some(_), Some(_), None) => Ok((
|
||||
CompactString::new("3"),
|
||||
CompactString::const_new("3"),
|
||||
Some(ch.to_lowercase().to_compact_string()),
|
||||
)),
|
||||
(Some(a), Some(b), Some(c), Some(d)) => Ok((
|
||||
|
@ -127,7 +127,7 @@ pub(super) fn render_dl_template(
|
|||
struct Context<'a> {
|
||||
crate_name: &'a str,
|
||||
crate_prefix: CompactString,
|
||||
crate_lowerprefix: String,
|
||||
crate_lowerprefix: CompactString,
|
||||
version: &'a str,
|
||||
cksum: &'a str,
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ edition = "2021"
|
|||
license = "Apache-2.0 OR MIT"
|
||||
|
||||
[dependencies]
|
||||
compact_str = { version = "0.7.0", features = ["serde"] }
|
||||
compact_str = { version = "0.8.0", features = ["serde"] }
|
||||
maybe-owned = { version = "0.3.4", features = ["serde"] }
|
||||
once_cell = "1.18.0"
|
||||
semver = { version = "1.0.17", features = ["serde"] }
|
||||
|
|
|
@ -20,7 +20,7 @@ binstalk-registry = { version = "0.9.1", path = "../binstalk-registry" }
|
|||
binstalk-types = { version = "0.7.0", path = "../binstalk-types" }
|
||||
cargo-toml-workspace = { version = "6.0.0", path = "../cargo-toml-workspace" }
|
||||
command-group = { version = "5.0.1", features = ["with-tokio"] }
|
||||
compact_str = { version = "0.7.0", features = ["serde"] }
|
||||
compact_str = { version = "0.8.0", features = ["serde"] }
|
||||
detect-targets = { version = "0.1.17", path = "../detect-targets", features = [
|
||||
"tracing",
|
||||
] }
|
||||
|
|
|
@ -11,7 +11,7 @@ license = "Apache-2.0 OR MIT"
|
|||
|
||||
[dependencies]
|
||||
cargo_toml = "0.20.0"
|
||||
compact_str = { version = "0.7.0", features = ["serde"] }
|
||||
compact_str = { version = "0.8.0", features = ["serde"] }
|
||||
glob = "0.3.1"
|
||||
normalize-path = { version = "0.2.1", path = "../normalize-path" }
|
||||
serde = "1.0.163"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue