From b718cae7b4755b40a6aeee16a2ee5d19d5a38d63 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 20 Oct 2022 15:56:12 -0700 Subject: update 'sha1' crate to 'sha1_smol' The current 'sha1' crate is a new implementationn, the old implementation was renamed to sha1_smol. --- fatcat-cli/Cargo.toml | 2 +- fatcat-cli/src/download.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'fatcat-cli') diff --git a/fatcat-cli/Cargo.toml b/fatcat-cli/Cargo.toml index af64986..2fbb35a 100644 --- a/fatcat-cli/Cargo.toml +++ b/fatcat-cli/Cargo.toml @@ -39,7 +39,7 @@ chrono-humanize = "*" tempfile = "3" indicatif = "0.16" url = "*" -sha1 = { version = "*", features = ["std"] } +sha1_smol = { version = "1", features = ["std"] } crossbeam-channel = "0.5" [package.metadata.deb] diff --git a/fatcat-cli/src/download.rs b/fatcat-cli/src/download.rs index 551d090..fce56de 100644 --- a/fatcat-cli/src/download.rs +++ b/fatcat-cli/src/download.rs @@ -5,7 +5,7 @@ use fatcat_openapi::models::{FileEntity, ReleaseEntity}; use indicatif::{ProgressBar, ProgressStyle}; use log::{error, info}; use reqwest::header::USER_AGENT; -use sha1::Sha1; +use sha1_smol::Sha1; use std::fmt; use std::fs::File; use std::io::{self, BufRead}; -- cgit v1.2.3