neoeinstein / protoc-gen-prost

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to properly use protoc-gen-prost-crate

morristai opened this issue · comments

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

  1. clone the repo
  2. cd into folder root
  3. Install protoc-gen-prost with cargo install --path protoc-gen-prost
  4. Install protoc-gen-prost-crate with cargo install --path protoc-gen-prost-crate
  5. mkdir proto/gen
  6. run protoc --prost-crate_out=proto/gen -I proto proto/greeter/v1/greeter.proto

image