mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Bump cargo_toml from 0.12.2 to 0.12.4 (#455)
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
51fe4d59e3
commit
405e41eda4
4 changed files with 15 additions and 14 deletions
|
@ -13,7 +13,7 @@ license = "GPL-3.0"
|
|||
async-trait = "0.1.57"
|
||||
bytes = "1.2.1"
|
||||
bzip2 = "0.4.3"
|
||||
cargo_toml = "0.12.2"
|
||||
cargo_toml = "0.12.4"
|
||||
compact_str = { version = "0.6.0", features = ["serde"] }
|
||||
crates_io_api = { version = "0.8.1", default-features = false }
|
||||
detect-targets = { version = "0.1.2", path = "../detect-targets" }
|
||||
|
|
|
@ -32,10 +32,10 @@ pub async fn install(
|
|||
} => {
|
||||
let current_version =
|
||||
package
|
||||
.version
|
||||
.version()
|
||||
.parse()
|
||||
.map_err(|err| BinstallError::VersionParse {
|
||||
v: package.version,
|
||||
v: package.version().to_string(),
|
||||
err,
|
||||
})?;
|
||||
let target = fetcher.target().into();
|
||||
|
@ -65,7 +65,8 @@ pub async fn install(
|
|||
} else {
|
||||
info!(
|
||||
"Dry-run: running `cargo install {} --version {} --target {target}`",
|
||||
package.name, package.version
|
||||
package.name,
|
||||
package.version()
|
||||
);
|
||||
Ok(None)
|
||||
}
|
||||
|
@ -118,7 +119,7 @@ async fn install_from_source(
|
|||
"Running `{} install {} --version {} --target {target}`",
|
||||
cargo.to_string_lossy(),
|
||||
package.name,
|
||||
package.version
|
||||
package.version()
|
||||
);
|
||||
|
||||
let mut cmd = Command::new(cargo);
|
||||
|
@ -126,7 +127,7 @@ async fn install_from_source(
|
|||
cmd.arg("install")
|
||||
.arg(&package.name)
|
||||
.arg("--version")
|
||||
.arg(&package.version)
|
||||
.arg(package.version())
|
||||
.arg("--target")
|
||||
.arg(target);
|
||||
|
||||
|
|
|
@ -156,8 +156,8 @@ async fn resolve_inner(
|
|||
|
||||
if let Some(curr_version) = curr_version {
|
||||
let new_version =
|
||||
Version::parse(&package.version).map_err(|err| BinstallError::VersionParse {
|
||||
v: package.version.clone(),
|
||||
Version::parse(package.version()).map_err(|err| BinstallError::VersionParse {
|
||||
v: package.version().to_string(),
|
||||
err,
|
||||
})?;
|
||||
|
||||
|
@ -206,8 +206,8 @@ async fn resolve_inner(
|
|||
Arc::new(Data {
|
||||
name: package.name.clone(),
|
||||
target: target.clone(),
|
||||
version: package.version.clone(),
|
||||
repo: package.repository.clone(),
|
||||
version: package.version().to_string(),
|
||||
repo: package.repository().map(ToString::to_string),
|
||||
meta: target_meta,
|
||||
})
|
||||
})
|
||||
|
@ -383,8 +383,8 @@ fn collect_bin_files(
|
|||
let bin_data = bins::Data {
|
||||
name: &package.name,
|
||||
target: fetcher.target(),
|
||||
version: &package.version,
|
||||
repo: package.repository.as_deref(),
|
||||
version: package.version(),
|
||||
repo: package.repository(),
|
||||
meta,
|
||||
bin_path,
|
||||
install_path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue