tokio-rs / prost

PROST! a Protocol Buffers implementation for the Rust Language
Apache License 2.0
3.92k stars 504 forks source link

prost_build::Config::prost_path is unusable. #939

Open pompon0 opened 12 months ago

pompon0 commented 12 months ago

If you set prost_path("x") in the config, then the generated rust structs will derive x::Message trait. However the derive macro expansion still assumes that prost crate is a direct dependency, which defies the purpose of customizing the prost_path in the first place.

caspermeijn commented 8 months ago

I see what you mean. When running cargo expand on a project which set prost_path, you will see impl ::prost::Message for Foo in the code. Can you provide a minimal, reproducible example of a failing project? This will help to create a test to verify your problem is resolved.

pompon0 commented 8 months ago

Here you go https://github.com/pompon0/prost-bug