From b09c57ec727069fd6399eda919d7f59ece21e6b4 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 29 Apr 2017 01:31:39 +0100 Subject: [PATCH] ecaps2: Move hashing crates to the main library. --- src/ecaps2.rs | 10 +++------- src/lib.rs | 3 +++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/ecaps2.rs b/src/ecaps2.rs index d5a13dd3..fade1f97 100644 --- a/src/ecaps2.rs +++ b/src/ecaps2.rs @@ -1,7 +1,3 @@ -extern crate sha2; -extern crate sha3; -extern crate blake2; - use disco::{Feature, Identity, Disco}; use data_forms::DataForm; use hashes; @@ -11,9 +7,9 @@ use minidom::Element; use error::Error; use ns; -use self::sha2::{Sha256, Sha512}; -use self::sha3::{Sha3_256, Sha3_512}; -use self::blake2::Blake2b; +use sha2::{Sha256, Sha512}; +use sha3::{Sha3_256, Sha3_512}; +use blake2::Blake2b; use digest::{Digest, VariableOutput}; use base64; diff --git a/src/lib.rs b/src/lib.rs index a21168fe..19689510 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,9 @@ extern crate minidom; extern crate jid; extern crate base64; extern crate digest; +extern crate sha2; +extern crate sha3; +extern crate blake2; /// Error type returned by every parser on failure. pub mod error;