1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//! This crate serves as a way to use the Hexe chess engine from within any Rust
//! project.
//!
//! # Usage
//!
//! This crate is available [on crates.io][crate] and can be used by adding the
//! following to your project's `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! hexe = "0.0.5"
//! ```
//!
//! and this to your crate root:
//!
//! ```
//! extern crate hexe;
//! # fn main() {}
//! ```
//!
//! # Using `hexe_core`
//!
//! This crate reexports the [`hexe_core`] crate as `hexe::core`. Its most
//! commonly used parts are available in the [`prelude`].
//!
//! If you wish to use `hexe_core` with its original name, you may do:
//!
//! ```
//! use hexe::core as hexe_core;
//! ```
//!
//! ## What `hexe_core` Provides
//!
//! - [Various board representations](https://docs.rs/hexe_core/0.0.5/hexe_core/board/)
//!
//! - [Dead.](https://docs.rs/hexe_core/0.0.5/hexe_core/castle/struct.Rights.html)
//!   [Simple.](https://docs.rs/hexe_core/0.0.5/hexe_core/square/enum.Square.html)
//!   [Primitives.](https://docs.rs/hexe_core/0.0.5/hexe_core/piece/enum.Piece.html)
//!
//! [crate]: https://crates.io/crates/hexe
//! [`hexe_core`]: https://docs.rs/hexe_core
//! [`prelude`]: prelude/index.html

#![doc(html_root_url = "https://docs.rs/hexe/0.0.5")]
#![doc(html_logo_url = "https://raw.githubusercontent.com/hexe-rs/Hexe/assets/Icon.png")]

// Lints ///////////////////////////////////////////////////////////////////////

// Built-in
#![allow(unknown_lints)]
#![deny(missing_docs)]

// Clippy
#![allow(needless_lifetimes)]
#![allow(redundant_field_names)]
#![allow(unreadable_literal)]
#![allow(zero_prefixed_literal)]

// Attributes //////////////////////////////////////////////////////////////////

#![cfg_attr(all(test, nightly), feature(test))]

// Internal Crates /////////////////////////////////////////////////////////////

#[cfg(all(test, nightly))]
extern crate test;

// External Crates /////////////////////////////////////////////////////////////

pub extern crate hexe_core as core;

#[allow(unused_imports)]
use core::_shared::*;

extern crate num_cpus;
extern crate scoped_threadpool;

extern crate uncon;

#[cfg(any(test, feature = "rand"))]
extern crate rand;

#[cfg(test)]
#[macro_use]
extern crate static_assertions;

// Modules /////////////////////////////////////////////////////////////////////

mod util;

pub mod engine;
pub mod position;
pub mod prelude;
pub mod zobrist;