diff --git a/Cargo.lock b/Cargo.lock index a608f02..27207fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1599,7 +1599,7 @@ dependencies = [ [[package]] name = "soldeer" -version = "0.3.0" +version = "0.3.1" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index d2f89e1..05c1d2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT" name = "soldeer" readme = "./README.md" repository = "https://github.com/mario-eth/soldeer" -version = "0.3.0" +version = "0.3.1" rust-version = "1.80" [lints] diff --git a/README.md b/README.md index db78525..4799c30 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This project was started to solve the following issues: - npmjs was built for the js ecosystem not for solidity - github versioning of the releases is a pain and not all the projects are using it correctly -## Version 0.3.0 +## Version 0.3.1 ### Version 0.3.0 introduces the following breaking changes diff --git a/src/utils.rs b/src/utils.rs index 805028c..980c7b4 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -8,7 +8,6 @@ use std::{ env, fs::{self, File}, io::{BufReader, Read, Write}, - os::unix::ffi::OsStrExt as _, path::{Path, PathBuf}, sync::{ atomic::{AtomicBool, Ordering}, @@ -212,7 +211,7 @@ pub fn hash_folder( } // first hash the filename/dirname to make sure it can't be renamed or removed let mut hasher = ::new(); - hasher.update(path.as_os_str().as_bytes()); + hasher.update(path.to_string_lossy().as_bytes()); // for files, also hash the contents if let Some(true) = entry.file_type().map(|t| t.is_file()) { if let Ok(file) = File::open(path) {