How to properly use protoc-gen-prost-crate
morristai opened this issue · comments
Morris Tai commented
I encountered an issue when trying to run the example code from the README. However, protoc-gen-prost appears to be working. I found there's a PR about similar issue but it's based on serde/tonic fix.
Steps to reproduce
env: Arch linux 2023‑03‑01
, Rust 1.70.0
, Cargo 0.2.2
- clone the repo
- cd into folder root
- Install protoc-gen-prost with
cargo install --path protoc-gen-prost
- Install protoc-gen-prost-crate with
cargo install --path protoc-gen-prost-crate
mkdir proto/gen
- run
protoc --prost-crate_out=proto/gen -I proto proto/greeter/v1/greeter.proto