connect 0.1.2

message queue abstraction over async network streams
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::env;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    if Ok("dev".to_owned()) == env::var("PROFILE") {
        protobuf_codegen_pure::Codegen::new()
            .out_dir("src/schema")
            .inputs(&["schema/message.proto"])
            .include("schema")
            .run()
            .expect("Codegen failed.");
    }

    Ok(())
}