23 releases

0.8.3 Mar 28, 2021
0.8.2 Sep 20, 2020
0.8.1 May 25, 2020
0.6.2 Jan 14, 2020
0.1.1 Jan 8, 2017

#1798 in Development tools

Download history 3184/week @ 2024-07-26 2713/week @ 2024-08-02 2712/week @ 2024-08-09 1964/week @ 2024-08-16 2681/week @ 2024-08-23 2551/week @ 2024-08-30 4066/week @ 2024-09-06 2929/week @ 2024-09-13 1467/week @ 2024-09-20 2797/week @ 2024-09-27 2395/week @ 2024-10-04 2061/week @ 2024-10-11 2688/week @ 2024-10-18 1864/week @ 2024-10-25 2032/week @ 2024-11-01 1091/week @ 2024-11-08

8,154 downloads per month
Used in 18 crates (via protoc-rust-grpc)

MIT/Apache

21KB
533 lines

grpc compiler

Stub generator for grpc.

Library and protoc-gen-rust-grpc plugin for protoc.

Can be installed with command cargo install grpc-compiler.

Generate .rs files:

protoc --rust-grpc_out=. foo.proto

Generate .rs files (protobuf messages and grpc stubs):

protoc --rust_out=. --rust-grpc_out=. foo.proto

Alternatively, protoc-grpc-rust crate can be used to invoke codegen programmatically, which only requires protoc command in $PATH.

Dependencies

~1.5MB
~35K SLoC