3andne / trojan-oxide

A Rust implementation of Trojan with QUIC tunnel, Lite-TLS and more.
GNU General Public License v3.0
32 stars 6 forks source link

Compile Error : "error[E0554]: `#![feature]` may not be used on the stable release channel" #2

Closed nivrrex closed 2 years ago

nivrrex commented 2 years ago

System environment : Debian 11

The source code is : e298001 released on 12 Oct 2021

Compile command : cargo build --release

Compilation environment such as rust : rustc --version rustc 1.57.0 (f1edd0429 2021-11-29) rustup --version rustup 1.24.3 (ce5817a94 2021-05-31) cargo --version cargo 1.57.0 (b2e52d7ca 2021-10-21)

The error is :

Compiling trojan-oxide v0.1.0 (/root/trojan-oxide)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:3:1
  |
3 | #![feature(generic_associated_types)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:4:1
  |
4 | #![feature(type_alias_impl_trait)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:5:1
  |
5 | #![feature(associated_type_defaults)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `trojan-oxide` due to 3 previous errors
nivrrex commented 2 years ago

Install nightly version rust (rustc 1.59.0-nightly) compiled through.