Skip to content

New versions of protobuf cause build failures #14

@mightybyte

Description

@mightybyte

Whenever a new version of the protobuf library comes out, I get an error like the following:

   Compiling crypto-message v1.1.21 (https://github.com/mightybyte/crypto-msg-parser.git#37de71d1)
error[E0425]: cannot find value `VERSION_3_5_0` in crate `protobuf`
  --> /root/.cargo/git/checkouts/crypto-msg-parser-15bfe06dc6f1f762/37de71d/crypto-message/src/proto/message.rs:26:49
   |
26 | const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_5_0;
   |                                                 ^^^^^^^^^^^^^ help: a constant with a similar name exists: `VERSION_3_6_0`
   |
  ::: /home/mightybyte/myproj/target/debug/build/protobuf-813fda9d6cf24c4f/out/version.rs:7:1
   |
7  | pub const VERSION_3_6_0: () = ();
   | --------------------------- similarly named constant `VERSION_3_6_0` defined here

It looks like this is caused by the use of a specific version on this line: https://github.com/crypto-crawler/crypto-msg-parser/blob/main/crypto-message/src/proto/message.rs#L26

Is there any way something can be done to avoid this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions