mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Rename flock to fs-lock (#338)
This commit is contained in:
parent
3387a63895
commit
a628cbf876
11 changed files with 16 additions and 16 deletions
|
@ -1,8 +1,8 @@
|
|||
[package]
|
||||
name = "flock"
|
||||
name = "fs-lock"
|
||||
description = "Locked files that can be used like normal File"
|
||||
repository = "https://github.com/cargo-bins/cargo-binstall"
|
||||
documentation = "https://docs.rs/flock"
|
||||
documentation = "https://docs.rs/fs-lock"
|
||||
version = "0.0.0"
|
||||
rust-version = "1.61.0"
|
||||
authors = ["Jiahao XU <Jiahao_XU@outlook.com>"]
|
|
@ -20,7 +20,7 @@ crates_io_api = { version = "0.8.0", default-features = false }
|
|||
detect-targets = { version = "0.1.0", path = "../detect-targets" }
|
||||
digest = "0.10.3"
|
||||
flate2 = { version = "1.0.24", default-features = false }
|
||||
flock = { version = "0.0.0", path = "../flock" }
|
||||
fs-lock = { version = "0.0.0", path = "../fs-lock" }
|
||||
futures-util = { version = "0.3.23", default-features = false, features = ["std"] }
|
||||
generic-array = "0.14.6"
|
||||
home = "0.5.3"
|
||||
|
|
|
@ -143,7 +143,7 @@ impl super::Fetcher for GhCrateMeta {
|
|||
}
|
||||
|
||||
async fn fetch_and_extract(&self, dst: &Path) -> Result<(), BinstallError> {
|
||||
let (url, pkg_fmt) = self.resolution.get().unwrap(); // find() is called first
|
||||
let (url, _pkg_fmt) = self.resolution.get().unwrap(); // find() is called first
|
||||
debug!("Downloading package from: '{url}'");
|
||||
Download::new(self.client.clone(), url.clone())
|
||||
.and_extract(self.pkg_fmt(), dst)
|
||||
|
|
|
@ -14,7 +14,7 @@ use std::{
|
|||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
use flock::FileLock;
|
||||
use fs_lock::FileLock;
|
||||
use miette::Diagnostic;
|
||||
use serde::Serialize;
|
||||
use thiserror::Error;
|
||||
|
|
|
@ -16,7 +16,7 @@ use std::{
|
|||
};
|
||||
|
||||
use compact_str::CompactString;
|
||||
use flock::FileLock;
|
||||
use fs_lock::FileLock;
|
||||
use miette::Diagnostic;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use thiserror::Error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue