Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to build project #4

Open
GOVYANSONG opened this issue Oct 11, 2022 · 2 comments
Open

failed to build project #4

GOVYANSONG opened this issue Oct 11, 2022 · 2 comments

Comments

@GOVYANSONG
Copy link

I cloned the repo and used cargo to build. but received many errors similar to the one below:

Compiling pbjson-types-any v0.2.3
Compiling envoy-control-plane v0.4.0 (/home/mk8s/ws4/rust-envoy-control-plane)
error[E0277]: the trait bound protobuf::Any: prost::message::Message is not satisfied
--> /home/mk8s/ws4/rust-envoy-control-plane/target/debug/build/pbjson-types-any-01af1beea1b4c834/out/google.protobuf.serde.rs:111:6
|
111 | impl ::pbjson_any::prost_wkt::MessageSerde for Any {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait prost::message::Message is not implemented for protobuf::Any
|
= help: the following other types implement trait prost::message::Message:
()
Box
Vec
bool
f32
f64
i32
i64
and 4 others
note: required by a bound in MessageSerde
--> /home/mk8s/.cargo/registry/src/github.com-1ecc6299db9ec823/prost-wkt-0.3.3/src/lib.rs:10:25
|
10 | pub trait MessageSerde: prost::Message + mopa::Any {
| ^^^^^^^^^^^^^^ required by this bound in MessageSerde

error[E0277]: the trait bound Api: prost::message::Message is not satisfied
--> /home/mk8s/ws4/rust-envoy-control-plane/target/debug/build/pbjson-types-any-01af1beea1b4c834/out/google.protobuf.serde.rs:335:6

any idea how to work around this?

@GOVYANSONG
Copy link
Author

If I build pbjson-types-any from source code separately, cargo build did succeed. it failed as part of build of this project.

@splix
Copy link
Contributor

splix commented Jul 22, 2023

@GOVYANSONG could you please tell how you build them separately? do you mean you added it as a source dependency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants