pleco-rs / Pleco

A Rust-based re-write of the Stockfish Chess Engine
https://crates.io/crates/pleco
GNU General Public License v3.0
358 stars 38 forks source link

Unable to compile with Rust nightly #125

Closed alecho closed 1 year ago

alecho commented 4 years ago

System Version: macOS 10.14.6 (18G103) Kernel Version: Darwin 18.7.0 rustc 1.41.0-nightly (25d8a9494 2019-11-29) Git: master, 0.1.5, 0.1.6

error[E0635]: unknown feature `const_slice_len`
  --> pleco/src/lib.rs:77:42
   |
77 | #![cfg_attr(feature = "nightly", feature(const_slice_len))]
   |                                          ^^^^^^^^^^^^^^^
ghost commented 3 years ago

Hey alecho, I have a branch on my fork which I have tweaked so that it is compiling on the nightly channel. 👍 https://github.com/sfleischman105/Pleco/compare/master...MackEdweise:compile-nightly?expand=1

Note that I have not tested it out yet: I only know that it will build.

Update: tests are all passing :)

abdulbadii commented 3 years ago

on debian neither in any, stable, beta, nightly

$ cargo build --release
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/pleco/Cargo.toml
workspace: /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/pleco_engine/Cargo.toml
workspace: /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/Cargo.toml

   Compiling prefetch v0.2.0
   Compiling crossbeam-utils v0.8.1
   Compiling memoffset v0.6.1
   Compiling num-traits v0.2.14
error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /home/demo/.cargo/registry/src/github.com-1ecc6299db9ec823/prefetch-0.2.0/src/lib.rs:18:1
SnowballSH commented 3 years ago

Same on my windows 64-bit machine.

chase-manning commented 1 year ago

@alecho @abdulbadii @SnowballSH This is fixed now 😄