xstack 0.2.10

libp2p stack rewritten from ground up for rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(unexpected_cfgs)]

fn main() {
    #[cfg(not(feature = "docrs"))]
    // Use this in build.rs
    protobuf_codegen::Codegen::new()
        // Use `protoc` parser, optional.
        .protoc()
        // Use `protoc-bin-vendored` bundled protoc command, optional.
        .protoc_path(&protoc_bin_vendored::protoc_bin_path().unwrap())
        // All inputs and imports from the inputs must reside in `includes` directories.
        // Inputs must reside in some of include paths.
        .includes(&["proto"])
        .input("proto/identity.proto")
        // Specify output directory relative to Cargo output directory.
        .out_dir("src/proto")
        .run_from_script();
}