localhost:~/kaminari# cargo b
Compiling lightws v0.6.2
error[E0432]: unresolved import `std::io::ReadBuf`
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/stream/read.rs:61:13
|
61 | use std::io::ReadBuf;
| ^^^^^^^^^^^^^^^^ no `ReadBuf` in `io`
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/lib.rs:2:1
|
2 | #![feature(const_slice_from_raw_parts)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/lib.rs:3:1
|
3 | #![feature(const_mut_refs)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/lib.rs:4:1
|
4 | #![feature(const_slice_index)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/lib.rs:5:1
|
5 | #![feature(read_buf)]
| ^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/lib.rs:6:1
|
6 | #![feature(ready_macro)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/lib.rs:7:1
|
7 | #![feature(future_poll_fn)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/lib.rs:8:1
|
8 | #![feature(specialization)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0658]: default values for const generic parameters are experimental
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/handshake/request.rs:37:47
|
37 | pub struct Request<'h, 'b: 'h, const N: usize = MAX_ALLOW_HEADERS> {
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
error[E0658]: default values for const generic parameters are experimental
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/handshake/response.rs:34:48
|
34 | pub struct Response<'h, 'b: 'h, const N: usize = MAX_ALLOW_HEADERS> {
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
error[E0658]: use of unstable library feature 'vec_spare_capacity'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/stream/read.rs:73:52
|
73 | let mut read_buf = ReadBuf::uninit(buf.spare_capacity_mut());
| ^^^^^^^^^^^^^^^^^^
|
= note: see issue #75017 <https://github.com/rust-lang/rust/issues/75017> for more information
error[E0599]: no method named `read_buf` found for mutable reference `&mut stream::Stream<IO, Role, Guarded>` in the current scope
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lightws-0.6.2/src/stream/read.rs:80:24
|
80 | match self.read_buf(&mut read_buf) {
| ^^^^^^^^ method not found in `&mut stream::Stream<IO, Role, Guarded>`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `read_buf`, perhaps you need to implement it:
candidate #1: `AsyncReadExt`
Some errors have detailed explanations: E0432, E0554, E0599, E0658.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `lightws` due to 12 previous errors