riegeli 0.1.1

Rust implementation of the Riegeli/records file format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use protobuf_codegen::CodeGen;
use std::path::PathBuf;

fn main() {
    let manifest_dir = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap());
    let proto_dir = manifest_dir.join("proto");

    std::env::set_current_dir(&proto_dir).unwrap();

    CodeGen::new()
        .inputs(["google/protobuf/descriptor.proto", "records_metadata.proto"])
        .include(".")
        .generate_and_compile()
        .unwrap();
}