Giter VIP home page Giter VIP logo

Comments (4)

thomasantony avatar thomasantony commented on June 2, 2024

I was able to get past this by forcing protobuf and protoc-rust to version 2.17.0 in my Cargo.toml. The problem is that later versions of these crates upgrade the version of bytes above 0.5 while grpc-rust still uses bytes v0.5.

from grpc-rust.

friddle avatar friddle commented on June 2, 2024

thanks

from grpc-rust.

tan-wei avatar tan-wei commented on June 2, 2024

Met the same issue:

error[E0308]: mismatched types
  --> C:\Users\Winterreise\scoop\persist\rustup\.cargo\registry\src\github.com-1ecc6299db9ec823\grpc-protobuf-0.8.2\src\lib.rs:27:62
   |
27 |         let mut is = CodedInputStream::from_carllerche_bytes(&buf);
   |                                                              ^^^^ expected struct `bytes::bytes::Bytes`, found struct `bytes::Bytes`
   |
   = note: expected reference `&bytes::bytes::Bytes`
              found reference `&bytes::Bytes`
   = note: perhaps two different versions of crate `bytes` are being used?

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `grpc-protobuf`

from grpc-rust.

friddle avatar friddle commented on June 2, 2024
protobuf = "2.14.0"
protoc-rust        = "2.14.0"

cargo update -p protobuf --precise 2.14.0

from grpc-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.