dgraph 0.4.0

A rust client for Dgraph database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate protoc_grpcio;

fn main() {
    let proto_root = "src/protos/dgraph11";
    println!("cargo:rerun-if-changed={}", proto_root);

    protoc_grpcio::compile_grpc_protos(
        &["api.proto"],
        &[proto_root],
        &proto_root,
        Some(protobuf_codegen::Customize {
            serde_derive: Some(true),
            ..Default::default()
        }),
    )
    .expect("Failed to compile gRPC definitions!");
}