borderless-hash 1.0.0

Definition of the Hash256 type, which is a thin wrapper for the sha3-256 hash with flatbuffer support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fs::{self, File};
use std::io::prelude::*;
use std::path::Path;

fn main() -> Result<(), std::io::Error> {
    let inputs = &[Path::new("src/flatbuffer/hash.fbs")];
    let out_dir = Path::new("src/");
    flatc_rust::run(flatc_rust::Args {
        inputs,
        out_dir,
        ..Default::default()
    })
    .expect("flatc installed");
    Ok(())
}