containerd / ttrpc-rust

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

ttrpc 0.5.4&0.5.5 don't support rust 1.52 anymore #205

Closed Tim-Zhang closed 1 year ago

Tim-Zhang commented 1 year ago

Got error:

   Compiling ttrpc v0.5.5
error[E0277]: `[&str; 1]` is not an iterator
  --> /home/tim/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ttrpc-0.5.5/build.rs:12:17
   |
12 |         .inputs(["src/ttrpc.proto"])
   |                 ^^^^^^^^^^^^^^^^^^^
   |                 |
   |                 expected an implementor of trait `IntoIterator`
   |                 help: consider borrowing here: `&["src/ttrpc.proto"]`
   |
   = note: the trait bound `[&str; 1]: IntoIterator` is not satisfied
   = note: required because of the requirements on the impl of `IntoIterator` for `[&str; 1]`

error: aborting due to previous error

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

Affected versions:

There is no need for version above 0.5 to support such a low rust version.