1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#![forbid(unsafe_code)]
#![deny(rust_2018_idioms, missing_docs)]
pub use bstr;
#[allow(missing_docs)]
pub mod borrowed;
#[allow(missing_docs)]
pub mod owned;
pub const SIZE_OF_SHA1_DIGEST: usize = 20;
#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)]
#[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))]
pub enum Kind {
Sha1,
}
impl Default for Kind {
fn default() -> Self {
Kind::Sha1
}
}