Closed egernst closed 3 years ago
/cc @mxpv
Once we address the prost-* updates, I believe we should rev this crate.
@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.
@egernst Mind to fix this?
@egernst I have fixed the problem and gave a force push.
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