summaryrefslogtreecommitdiffstats
path: root/src/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/types.rs b/src/types.rs
index 653768a..0e67483 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -1,7 +1,6 @@
use std::fmt::Display;
use serde::{Deserialize, Serialize};
-use sha2::Sha256;
use crate::util::cjson;
@@ -50,13 +49,13 @@ macro_rules! stringhash_newtype {
};
}
-pub type InputHasher = Sha256;
+pub type InputHasher = blake3::Hasher;
stringhash_newtype!(InputHash);
-pub type DependencyHasher = Sha256;
+pub type DependencyHasher = blake3::Hasher;
stringhash_newtype!(DependencyHash);
-pub type ArchiveHasher = Sha256;
+pub type ArchiveHasher = blake3::Hasher;
stringhash_newtype!(ArchiveHash);
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq, Hash)]