Git Product home page Git Product logo

grpc-rustdemo's Introduction

Hi there ๐Ÿ‘‹

rongfengliang/rongfengliang is a โœจ special โœจ repository because its README.md (this file) appears on your GitHub profile.

Here are some ideas to get you started:

  • ๐Ÿ”ญ Iโ€™m currently working on ...
  • ๐ŸŒฑ Iโ€™m currently learning ...
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on ...
  • ๐Ÿค” Iโ€™m looking for help with ...
  • ๐Ÿ’ฌ Ask me about ...
  • ๐Ÿ“ซ How to reach me: ...
  • ๐Ÿ˜„ Pronouns: ...
  • โšก Fun fact: ...

grpc-rustdemo's People

Contributors

rongfengliang avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

grpc-rustdemo's Issues

Won't build in cargo 1.57.0

This looks like a good demo! But it won't build in cargo 1.57.0.

  --> /Users/justin.collum/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-1.4.5/src/chars.rs:38:27
   |
38 |         Chars(Bytes::from(src))
   |                           ^^^
   |
note: first, the lifetime cannot outlive the lifetime `'a` as defined here...
  --> /Users/justin.collum/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-1.4.5/src/chars.rs:36:6
   |
36 | impl<'a> From<&'a str> for Chars {
   |      ^^
note: ...so that the expression is assignable
  --> /Users/justin.collum/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-1.4.5/src/chars.rs:38:27
   |
38 |         Chars(Bytes::from(src))
   |                           ^^^
   = note: expected `&str`
              found `&'a str`
   = note: but, the lifetime must be valid for the static lifetime...
note: ...so that the types are compatible
  --> /Users/justin.collum/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-1.4.5/src/chars.rs:38:15
   |
38 |         Chars(Bytes::from(src))
   |               ^^^^^^^^^^^
   = note: expected `From<&str>`
              found `From<&'static str>`

error[E0061]: this function takes 1 argument but 2 arguments were supplied
   --> /Users/justin.collum/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-1.4.5/src/buf_read_iter.rs:230:27
    |
230 |             let r = bytes.slice(self.pos_within_buf, self.pos_within_buf + len);
    |                           ^^^^^ -------------------  ------------------------- supplied 2 arguments
    |                           |
    |                           expected 1 argument
    |
note: associated function defined here
   --> /Users/justin.collum/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.6.0/src/bytes.rs:228:12
    |
228 |     pub fn slice(&self, range: impl RangeBounds<usize>) -> Bytes {
    |            ^^^^^

   Compiling crossbeam-deque v0.7.4
error[E0308]: mismatched types
   --> /Users/justin.collum/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-1.4.5/src/buf_read_iter.rs:238:37
    |
238 |                     self.read_exact(buf)?;
    |                                     ^^^ expected slice `[u8]`, found struct `UninitSlice`
    |
    = note: expected mutable reference `&mut [u8]`
               found mutable reference `&mut UninitSlice`

Some errors have detailed explanations: E0061, E0308, E0495.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `protobuf` due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

I'm gonna try with a version of Rust that was released closer to when this was created.

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.