boundary-compiler-core 0.1.0

P31 v11A boundary compiler microkernel — strict JSON boundary compilation with receipt artifacts
Documentation
1
2
3
4
5
6
7
use sha2::{Digest, Sha256};

pub fn sha256_digest_hex(bytes: &[u8]) -> String {
    let mut hasher = Sha256::new();
    hasher.update(bytes);
    format!("sha256:{:x}", hasher.finalize())
}