mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-07 12:40:04 +00:00
Impl new RAII type helpers::flock::FileLock
that locks a file exclusive or shared Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
751cf47716
commit
9e45ba1032
2 changed files with 48 additions and 0 deletions
|
@ -42,6 +42,9 @@ pub use tls_version::TLSVersion;
|
|||
mod crate_name;
|
||||
pub use crate_name::CrateName;
|
||||
|
||||
mod flock;
|
||||
pub use flock::FileLock;
|
||||
|
||||
pub fn cargo_home() -> Result<&'static Path, io::Error> {
|
||||
static CARGO_HOME: OnceCell<PathBuf> = OnceCell::new();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue