A simple converter from .proto files into rust quick-protobuf compatible modules.
pb-rs <file.proto>
pb-rs can also be used as a crate (for example in your cargo build scripts).
```rust extern crate pb_rs;
use std::path::PathBuf; use pb_rs::types::{Config, FileDescriptor};
fn main() { let config = Config { infile: PathBuf::from("protos/Hello.proto"), outfile: PathBuf::from("src/hello.rs"), singlemodule: false, importsearchpath: vec![PathBuf::from("protos")], nooutput: false, };
FileDescriptor::write_proto(&config).unwrap();
} ```