diff options
| author | Bryan Newbold <bnewbold@archive.org> | 2022-10-20 15:56:12 -0700 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@archive.org> | 2022-10-20 15:56:14 -0700 | 
| commit | b718cae7b4755b40a6aeee16a2ee5d19d5a38d63 (patch) | |
| tree | e2c1590d267b2131d39061bdb4d5f9bd738847f6 | |
| parent | 402b8e27c8c39ef856ffc583799072ed70cdb0a6 (diff) | |
| download | fatcat-cli-b718cae7b4755b40a6aeee16a2ee5d19d5a38d63.tar.gz fatcat-cli-b718cae7b4755b40a6aeee16a2ee5d19d5a38d63.zip | |
update 'sha1' crate to 'sha1_smol'
The current 'sha1' crate is a new implementationn, the old
implementation was renamed to sha1_smol.
| -rw-r--r-- | fatcat-cli/Cargo.toml | 2 | ||||
| -rw-r--r-- | fatcat-cli/src/download.rs | 2 | 
2 files changed, 2 insertions, 2 deletions
| 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}; | 
