protocrate

Crates.ioprotocrate
lib.rsprotocrate
version0.1.0
sourcesrc
created_at2021-01-29 15:17:16.914823
updated_at2021-01-29 15:17:16.914823
descriptionTool for generating a Rust crate from a tree of protobuf files.
homepage
repositoryhttps://github.com/einride/protocrate-rs
max_upload_size
id348108
size39,410
Jacob Jonsson (Jassob)

documentation

README

Protobuf Rust Crate Generator

Tool for generating a Rust crate from one or multiple trees of protobuf files. Protobuf code is generated using PROST! and gRCP using Tonic.

Generated code is structured in modules according to the protobuf package name.

Build

dev@work:~$ cargo build

Example Usage

Generate a crate named my-pb-crate in direcotry gen using protobuf files from the directories proto/common, proto/internal and proto/external:

dev@work:~$ protocrate --output-dir gen --pkg-name my-pb-crate --pkg-version 0.2.1 proto/common proto/internal proto/external
Commit count: 36

cargo fmt