const-sha1 0.1.1

A sha1 implementation for use in const contexts
Documentation

crates.io docs.rs Build and Test

const-sha1

A sha1 implementation useable in const contexts.

Use

const fn signature() -> [u32; 5] {
    const_sha1::sha1(stringify!(MyType).as_bytes()).data
}

Minimum Supported Rust Version (MSRV)

This crate requires Rust 1.46.0-beta or newer due to the use of some const expression features.

Attribution

This code is largely inspired by the following repos: