SUPERCILEX / fuc

Modern, performance focused unix commands
Apache License 2.0
340 stars 8 forks source link

Can't build with cargo #7

Closed roland-5 closed 1 year ago

roland-5 commented 1 year ago

If I try cargo install cpz rmz --locked I see this

  Downloaded rmz v1.1.1
  Downloaded 1 crate (14.2 KB) in 0.21s
  Installing cpz v1.1.1
  Downloaded supports-color v1.3.1
  Downloaded typed-builder v0.11.0
  Downloaded is_ci v1.1.1
  Downloaded thiserror-impl v1.0.38
  Downloaded semver v1.0.16
  Downloaded thiserror v1.0.38
  Downloaded owo-colors v3.5.0
  Downloaded clap2 v4.0.32
  Downloaded fuc_engine v1.1.1
  Downloaded error-stack v0.2.4
  Downloaded os_str_bytes v6.4.1
  Downloaded is-terminal v0.4.2
  Downloaded once_cell v1.17.0
  Downloaded anyhow v1.0.68
  Downloaded rustix v0.36.6
  Downloaded libc v0.2.139
  Downloaded crossbeam-utils v0.8.14
  Downloaded io-lifetimes v1.0.3
  Downloaded linux-raw-sys v0.1.4
  Downloaded terminal_size v0.2.3
  Downloaded 20 crates (2.6 MB) in 0.55s
   Compiling proc-macro2 v1.0.49
   Compiling libc v0.2.139
   Compiling unicode-ident v1.0.6
   Compiling quote v1.0.23
   Compiling syn v1.0.107
   Compiling version_check v0.9.4
   Compiling io-lifetimes v1.0.3
   Compiling semver v1.0.16
   Compiling rustix v0.36.6
   Compiling linux-raw-sys v0.1.4
   Compiling bitflags v1.3.2
   Compiling crossbeam-utils v0.8.14
   Compiling cfg-if v1.0.0
   Compiling is_ci v1.1.1
   Compiling thiserror v1.0.38
   Compiling heck v0.4.0
   Compiling os_str_bytes v6.4.1
   Compiling once_cell v1.17.0
   Compiling strsim v0.10.0
   Compiling termcolor v1.1.3
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling clap_lex v0.3.0
   Compiling crossbeam-channel v0.5.6
   Compiling rustc_version v0.4.0
   Compiling error-stack v0.2.4
   Compiling atty v0.2.14
   Compiling supports-color v1.3.1
   Compiling owo-colors v3.5.0
   Compiling is-terminal v0.4.2
   Compiling terminal_size v0.2.3
   Compiling thiserror-impl v1.0.38
   Compiling clap_derive v4.0.21
   Compiling typed-builder v0.11.0
   Compiling fuc_engine v1.1.1
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/fuc_engine-1.1.1/src/lib.rs:1:12
  |
1 | #![feature(const_cstr_methods)]
  |            ^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/fuc_engine-1.1.1/src/lib.rs:2:12
  |
2 | #![feature(const_result_drop)]
  |            ^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/fuc_engine-1.1.1/src/lib.rs:3:12
  |
3 | #![feature(const_option)]
  |            ^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/fuc_engine-1.1.1/src/lib.rs:4:12
  |
4 | #![feature(once_cell)]
  |            ^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `fuc_engine` due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
  Installing rmz v1.1.1
   Compiling proc-macro2 v1.0.49
   Compiling libc v0.2.139
   Compiling unicode-ident v1.0.6
   Compiling quote v1.0.23
   Compiling syn v1.0.107
   Compiling version_check v0.9.4
   Compiling io-lifetimes v1.0.3
   Compiling semver v1.0.16
   Compiling rustix v0.36.6
   Compiling linux-raw-sys v0.1.4
   Compiling bitflags v1.3.2
   Compiling crossbeam-utils v0.8.14
   Compiling cfg-if v1.0.0
   Compiling is_ci v1.1.1
   Compiling thiserror v1.0.38
   Compiling heck v0.4.0
   Compiling os_str_bytes v6.4.1
   Compiling strsim v0.10.0
   Compiling once_cell v1.17.0
   Compiling termcolor v1.1.3
   Compiling clap_lex v0.3.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling rustc_version v0.4.0
   Compiling crossbeam-channel v0.5.6
   Compiling error-stack v0.2.4
   Compiling atty v0.2.14
   Compiling supports-color v1.3.1
   Compiling owo-colors v3.5.0
   Compiling is-terminal v0.4.2
   Compiling terminal_size v0.2.3
   Compiling thiserror-impl v1.0.38
   Compiling typed-builder v0.11.0
   Compiling clap_derive v4.0.21
   Compiling fuc_engine v1.1.1
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/fuc_engine-1.1.1/src/lib.rs:1:12
  |
1 | #![feature(const_cstr_methods)]
  |            ^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/fuc_engine-1.1.1/src/lib.rs:2:12
  |
2 | #![feature(const_result_drop)]
  |            ^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/fuc_engine-1.1.1/src/lib.rs:3:12
  |
3 | #![feature(const_option)]
  |            ^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/fuc_engine-1.1.1/src/lib.rs:4:12
  |
4 | #![feature(once_cell)]
  |            ^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `fuc_engine` due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cpz v1.1.1`, intermediate artifacts can be found at `/tmp/cargo-installiGVJr2`
error: failed to compile `rmz v1.1.1`, intermediate artifacts can be found at `/tmp/cargo-installBjmtJB`

My rust version (stable branch)

rustc -V
rustc 1.66.1 (90743e729 2023-01-10)
Elvyria commented 1 year ago

Use nightly toolchain to install cargo +nightly install ... (To get nightly toolchain rustup toolchain install nightly)

SUPERCILEX commented 1 year ago

Oops, yeah I started out not needing nightly features and then forgot to update the docs.

roland-5 commented 1 year ago

Thanks!