git-features 0.26.2

A crate to integrate various capabilities using compile-time feature flags
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use git_features::hash::Sha1;

#[cfg(not(feature = "fast-sha1"))]
#[test]
fn size_of_sha1() {
    assert_eq!(std::mem::size_of::<Sha1>(), 96)
}

#[cfg(feature = "fast-sha1")]
#[test]
fn size_of_sha1() {
    assert_eq!(std::mem::size_of::<Sha1>(), 104)
}