Open pompon0 opened 12 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.
Here you go https://github.com/pompon0/prost-bug
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 theprost_path
in the first place.