#rpc #grpc #async #codegen #protobuf

madsim-tonic-build

Codegen module of madsim-tonic simulation implementation

5 releases

Uses new Rust 2021

0.2.0 Aug 10, 2022
0.2.0-alpha.7 Aug 6, 2022
0.2.0-alpha.6 Aug 1, 2022
0.2.0-alpha.5 Jul 26, 2022
0.2.0-alpha.1 May 12, 2022

#862 in Network programming

Download history 2481/week @ 2022-06-05 128/week @ 2022-06-12 90/week @ 2022-06-19 69/week @ 2022-06-26 60/week @ 2022-07-03 61/week @ 2022-07-10 62/week @ 2022-07-17 240/week @ 2022-07-24 193/week @ 2022-07-31 239/week @ 2022-08-07 109/week @ 2022-08-14 109/week @ 2022-08-21 110/week @ 2022-08-28 89/week @ 2022-09-04 78/week @ 2022-09-11 123/week @ 2022-09-18

408 downloads per month

MIT license

39KB
800 lines

madsim-tonic-build

Crate Docs

Compiles proto files via prost and generates service stubs and proto definitiones for use with madsim-tonic.

This crate will generate code for simulation along with the original code. The macro madsim_tonic::include_proto will decide which version to use based on whether the sim feature is enabled.

This code is modified from tonic-build v0.7.2. It provides exactly the same API as the original crate.

Dependencies

~0.5–1.5MB
~34K SLoC