chess 3.0.1

This is a fast chess move generator. It has a very good set of documentation, so you should take advantage of that. It (now) generates all lookup tabels with a build.rs file, which means that very little pseudo-legal move generation requires branching. There are some convenience functions that are exposed to, for example, find all the squares between two squares. This uses a copy-on-make style structure, and the Board structure is as slimmed down as possible to reduce the cost of copying the board. There are places to improve perft-test performance further, but I instead opt to be more feature-complete to make it useful in real applications. For example, I generate both a hash of the board and a pawn-hash of the board for use in evaluation lookup tables (using Zobrist hashing). There are two ways to generate moves, one is faster, the other has more features that will be useful if making a chess engine. See the documentation for more details.
Documentation
Build #137445 2019-01-16T00:50:21.185028+00:00
# rustc version
rustc 1.33.0-nightly (c2d381d39 2019-01-10)
# docs.rs version
cratesfyi 0.6.0 (1a20968 2019-01-11)

# build log
Updating crates.io index
Downloading crates ...
Downloaded chess v3.0.1
Compiling libc v0.2.47
Fresh nodrop v0.1.13
Fresh arrayvec v0.4.10
Running `rustc --crate-name build_script_build /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.47/build.rs --color never --crate-type bin --emit=dep-info,link -C opt-level=3 -C debuginfo=2 -C debug-assertions=on --cfg 'feature="default"' --cfg 'feature="use_std"' -C metadata=2734df68ff98d317 -C extra-filename=-2734df68ff98d317 --out-dir /home/cratesfyi/cratesfyi/debug/build/libc-2734df68ff98d317 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Running `/home/cratesfyi/cratesfyi/debug/build/libc-2734df68ff98d317/build-script-build`
Running `rustc --crate-name libc /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.47/src/lib.rs --color never --crate-type lib --emit=dep-info,link -C opt-level=3 -C debuginfo=2 -C debug-assertions=on --cfg 'feature="default"' --cfg 'feature="use_std"' -C metadata=02f23deab2a9bd85 -C extra-filename=-02f23deab2a9bd85 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow --cfg core_cvoid`
Compiling rand v0.4.5
Running `rustc --crate-name rand /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.4.5/src/lib.rs --color never --crate-type lib --emit=dep-info,link -C opt-level=3 -C debuginfo=2 -C debug-assertions=on --cfg 'feature="default"' --cfg 'feature="libc"' --cfg 'feature="std"' -C metadata=603791bfc1786107 -C extra-filename=-603791bfc1786107 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern libc=/home/cratesfyi/cratesfyi/debug/deps/liblibc-02f23deab2a9bd85.rlib --cap-lints allow`
Compiling chess v3.0.1
Running `rustc --edition=2018 --crate-name build_script_build /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/chess-3.0.1/src/build.rs --color never --crate-type bin --emit=dep-info,link -C opt-level=3 -C debuginfo=2 -C debug-assertions=on -C metadata=d59a09f4f07c9b05 -C extra-filename=-d59a09f4f07c9b05 --out-dir /home/cratesfyi/cratesfyi/debug/build/chess-d59a09f4f07c9b05 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern rand=/home/cratesfyi/cratesfyi/debug/deps/librand-603791bfc1786107.rlib --cap-lints allow`
Running `/home/cratesfyi/cratesfyi/debug/build/chess-d59a09f4f07c9b05/build-script-build`
Documenting chess v3.0.1
Running `rustdoc --edition=2018 --crate-name chess /home/cratesfyi/.cargo/registry/src/github.com-1ecc6299db9ec823/chess-3.0.1/src/lib.rs --cap-lints allow --color never -o /home/cratesfyi/cratesfyi/doc -Z unstable-options --resource-suffix -20190110-1.33.0-nightly-c2d381d39 --static-root-path / --disable-per-crate-search --extern-html-root-url 'arrayvec=https://docs.rs/arrayvec/0.4.10' --extern-html-root-url 'nodrop=https://docs.rs/nodrop/0.1.13' --extern-html-root-url 'rand=https://docs.rs/rand/0.4.5' -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern arrayvec=/home/cratesfyi/cratesfyi/debug/deps/libarrayvec-21a7bfb5edce8214.rmeta --extern nodrop=/home/cratesfyi/cratesfyi/debug/deps/libnodrop-e3e1d752cc6d57e4.rmeta`
Finished dev [optimized + debuginfo] target(s) in 16.09s