Skip to content

Commit

Permalink
chore(deps): rename zip_next to zip (#128)
Browse files Browse the repository at this point in the history
`zip_next` was renamed to `zip`.
  • Loading branch information
DaniPopes authored Apr 22, 2024
1 parent be60cc3 commit ab8011a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 196 deletions.
197 changes: 4 additions & 193 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/svm-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ itertools = { version = "0.12", optional = true }
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }

[target.'cfg(all(target_os = "windows", target_arch = "x86_64"))'.dependencies]
zip_next = "1.0"
zip = { version = "1.1.1", default-features = false, features = ["deflate"] }

[dev-dependencies]
rand = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion crates/svm-rs/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ pub enum SvmError {
UnsuccessfulResponse(Url, StatusCode),
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
#[error(transparent)]
ZipError(#[from] zip_next::result::ZipError),
ZipError(#[from] zip::result::ZipError),
}
2 changes: 1 addition & 1 deletion crates/svm-rs/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl Installer<'_> {
let version_path = solc_path.parent().unwrap();

let mut content = std::io::Cursor::new(self.binbytes);
let mut archive = zip_next::ZipArchive::new(&mut content)?;
let mut archive = zip::ZipArchive::new(&mut content)?;
archive.extract(version_path)?;

std::fs::rename(version_path.join("solc.exe"), &solc_path)?;
Expand Down

0 comments on commit ab8011a

Please sign in to comment.