Skip to content

Commit

Permalink
Prepare for the 1.0.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nlfiedler committed Jan 8, 2022
1 parent 6094214 commit 86bb83f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastcdc"
version = "1.0.5"
version = "1.0.6"
authors = ["Nathan Fiedler <[email protected]>"]
edition = "2018"
description = "FastCDC (content defined chunking) in pure Rust."
Expand All @@ -16,4 +16,4 @@ exclude = [
[dev-dependencies]
memmap = "0.7.0"
crypto-hash = "0.3.4"
clap = "2.33.0"
clap = "3.0.5"
8 changes: 4 additions & 4 deletions examples/dedupe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
}
Expand All @@ -20,16 +20,16 @@ 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.")
.takes_value(true)
.validator(is_integer),
)
.arg(
Arg::with_name("INPUT")
Arg::new("INPUT")
.help("Sets the input file to use")
.required(true)
.index(1),
Expand Down

0 comments on commit 86bb83f

Please sign in to comment.