jordanbray / chess

A rust library to manage chess move generation
https://jordanbray.github.io/chess/
MIT License
234 stars 54 forks source link

Version 2.0.2 on crates.io doesn't build #14

Closed 1tgr closed 5 years ago

1tgr commented 5 years ago

It produces a lot of errors, starting with:

~/.cargo/bin/cargo check --color=always --all --all-targets
   Compiling chess v2.0.2
error[E0433]: failed to resolve: use of undeclared type or module `gen_tables`
 --> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/chess-2.0.2/src/gen_tables/bmis.rs:6:5
  |
6 | use gen_tables::magic_helpers::{magic_mask, questions_and_answers, NUM_MOVES};
  |     ^^^^^^^^^^ use of undeclared type or module `gen_tables`

That code would build on Rust 2015, but version 2.0.2 is marked as Rust 2018.

Version 2.0.1 (the latest version committed to this repo) is still Rust 2015 and it works fine.

jordanbray commented 5 years ago

This is fixed in the next version, which I'm planning to push out today.

jordanbray commented 5 years ago

Fixed in 3.0.0. Major version number bump due to minor API changes.