From 86bb83f7e8f979b94fa75388a01cb58de5dc1fde Mon Sep 17 00:00:00 2001 From: Nathan Fiedler Date: Sat, 8 Jan 2022 10:21:15 -0800 Subject: [PATCH] Prepare for the 1.0.6 release --- CHANGELOG.md | 4 ++++ Cargo.toml | 4 ++-- examples/dedupe.rs | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea0ebb3..af062df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). This file follows the convention described at [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). +## [1.0.6] - 2021-01-08 +### Added +- rickvanprim: implement `size_hint()` for FastCDC struct. + ## [1.0.5] - 2020-07-22 ### Added - Smoozilla: add `with_eof()` constructor for streaming input data. diff --git a/Cargo.toml b/Cargo.toml index 2d1fb7b..e674bb7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fastcdc" -version = "1.0.5" +version = "1.0.6" authors = ["Nathan Fiedler "] edition = "2018" description = "FastCDC (content defined chunking) in pure Rust." @@ -16,4 +16,4 @@ exclude = [ [dev-dependencies] memmap = "0.7.0" crypto-hash = "0.3.4" -clap = "2.33.0" +clap = "3.0.5" diff --git a/examples/dedupe.rs b/examples/dedupe.rs index 63a50dd..66d6a42 100644 --- a/examples/dedupe.rs +++ b/examples/dedupe.rs @@ -9,7 +9,7 @@ use std::fs::File; use std::str::FromStr; fn main() { - fn is_integer(v: String) -> Result<(), String> { + fn is_integer(v: &str) -> Result<(), String> { if u64::from_str(&v).is_ok() { return Ok(()); } @@ -20,8 +20,8 @@ fn main() { let matches = App::new("Example of using fastcdc crate.") .about("Splits a (large) file and computes checksums.") .arg( - Arg::with_name("size") - .short("s") + Arg::new("size") + .short('s') .long("size") .value_name("SIZE") .help("The desired average size of the chunks.") @@ -29,7 +29,7 @@ fn main() { .validator(is_integer), ) .arg( - Arg::with_name("INPUT") + Arg::new("INPUT") .help("Sets the input file to use") .required(true) .index(1),