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
#![forbid(unsafe_code)] use bstr::{BStr, BString, ByteSlice}; /// For convenience to allow using `bstr` without adding it to own cargo manifest pub use bstr; pub mod borrowed; pub mod owned; mod types; pub use types::*; pub mod commit; #[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone, Copy)] #[cfg_attr(feature = "serde1", derive(serde::Serialize, serde::Deserialize))] pub enum HashKind { Sha1, } impl Default for HashKind { fn default() -> Self { HashKind::Sha1 } }