distrans_peer 0.1.8

Distrans p2p protocol and agent components
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    if std::env::var("DOCS_RS").is_ok()
        || std::env::var("CARGO_CFG_DOC").is_ok()
        || std::env::var("BUILD_DOCS").is_ok()
    {
        return;
    }

    // Compile Capn'Proto
    ::capnpc::CompilerCommand::new()
        .output_path("src/")
        .default_parent_module(vec!["proto".into()])
        .file("proto/distrans.capnp")
        .run()
        .expect("compiling schema");
}