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

#851 in Development tools

Download history 1644/week @ 2023-11-18 2496/week @ 2023-11-25 2754/week @ 2023-12-02 4512/week @ 2023-12-09 2992/week @ 2023-12-16 3443/week @ 2023-12-23 2699/week @ 2023-12-30 3328/week @ 2024-01-06 2937/week @ 2024-01-13 1719/week @ 2024-01-20 1808/week @ 2024-01-27 2740/week @ 2024-02-03 3004/week @ 2024-02-10 5702/week @ 2024-02-17 2563/week @ 2024-02-24 2350/week @ 2024-03-02

14,204 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