Browse Source

Updating dependencies. Incrementing patch version.

develop
Drew Short 7 years ago
parent
commit
af5ea1ac0f
  1. 18
      Cargo.toml
  2. 3
      src/cache.rs

18
Cargo.toml

@ -1,6 +1,6 @@
[package]
name = "pihash"
version = "0.3.4"
version = "0.3.5"
authors = ["Drew Short <warrick@sothr.com>"]
description = "A simple library for generating perceptual hashes for images and comparing images based on their perceptual hashes."
repository = "https://github.com/warricksothr/Perceptual-Image-Hashing/"
@ -20,11 +20,11 @@ default = []
bench = []
[dependencies]
libc = "0.2.10"
rustc-serialize = "0.3.19"
dft = "0.4.3"
image = "0.9.0"
num = "0.1.32"
docopt = "0.6.80"
flate2 = "0.2.13"
sha1 = "0.1.1"
libc = "0.2.20"
rustc-serialize = "0.3.22"
dft = "0.5.4"
image = "0.13.0"
num = "0.1.36"
docopt = "0.7.0"
flate2 = "0.2.19"
sha1 = "0.2.0"

3
src/cache.rs

@ -139,8 +139,9 @@ impl<'a> Cache<'a> {
try!(source.read_to_end(&mut buf));
let mut sha1 = Sha1::new();
sha1.update(&buf);
let digest = sha1.digest();
// Return the hex result of the hash
Ok(sha1.hexdigest())
Ok(format!("{}", digest))
}
/**

Loading…
Cancel
Save