containerd / ttrpc-rust

Rust implementation of ttrpc (GRPC for low-memory environments)
Apache License 2.0
197 stars 47 forks source link

cargo: update prost dependencies #94

Closed egernst closed 3 years ago

egernst commented 3 years ago

Let's move to version 0.8 to obtain latest fixes. cargo-audit identified issues with the current version, including: RUSTSEC-2020-0002 RUSTSEC-2021-0073

Signed-off-by: Eric Ernst eric_ernst@apple.com

egernst commented 3 years ago

/cc @mxpv

egernst commented 3 years ago

Once we address the prost-* updates, I believe we should rev this crate.

Tim-Zhang commented 3 years ago

@egernst When I run cargo build in the folder compiler, I got the following error:

error[E0277]: the trait bound `&Vec<u8>: Buf` is not satisfied
  --> src/prost_codegen.rs:64:52
   |
64 |     let descriptor_set = FileDescriptorSet::decode(&buf)?;
   |                                                    ^^^^
   |                                                    |
   |                                                    the trait `Buf` is not implemented for `&Vec<u8>`
   |                                                    help: consider adding dereference here: `&*buf`
   |
   = note: required by `decode`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `ttrpc-compiler`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

The error could be fixed follow the instruction above, thanks.

Tim-Zhang commented 3 years ago

@egernst Mind to fix this?

Tim-Zhang commented 3 years ago

@egernst I have fixed the problem and gave a force push.