protoc-rust-grpc

Crates.ioprotoc-rust-grpc
lib.rsprotoc-rust-grpc
version0.8.3
sourcesrc
created_at2017-06-24 18:43:16.174811
updated_at2021-03-28 23:09:22.733741
descriptionprotoc --rust-grpc_out=... available as API. protoc needs to be in $PATH, protoc-gen-rust-grpc does not.
homepagehttps://github.com/stepancheg/rust-protobuf/protoc-rust/
repositoryhttps://github.com/stepancheg/rust-protobuf/protoc-rust/
max_upload_size
id20498
size9,695
Kevin Nilson (kevinnilson)

documentation

README

API to generate .rs files

API to generate .rs files to be used e. g. from build.rs.

Example code:

fn main() {
    protoc_rust_grpc::run(protoc_rust_grpc::Args {
        out_dir: "src",
        includes: &["proto"],
        input: &["proto/aaa.proto", "proto/bbb.proto"],
        rust_protobuf: true, // also generate protobuf messages, not just services
        ..Default::default()
    }).expect("protoc-rust-grpc");
}

Note this API requires protoc command present in $PATH. Although protoc-gen-rust-grpc command is not needed.

Commit count: 3238

cargo fmt