diff --git a/Cargo.lock b/Cargo.lock index aeb23cf6..e6c3cccf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -126,12 +126,6 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" -[[package]] -name = "core-foundation-sys" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" - [[package]] name = "criterion" version = "0.5.1" @@ -317,15 +311,6 @@ version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" -[[package]] -name = "ntapi" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4" -dependencies = [ - "winapi", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -359,7 +344,6 @@ dependencies = [ "itertools 0.13.0", "pretty_assertions", "shakmaty", - "sysinfo", ] [[package]] @@ -535,21 +519,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "sysinfo" -version = "0.30.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "732ffa00f53e6b2af46208fba5718d9662a421049204e156328b66791ffa15ae" -dependencies = [ - "cfg-if", - "core-foundation-sys", - "libc", - "ntapi", - "once_cell", - "rayon", - "windows", -] - [[package]] name = "tinytemplate" version = "1.2.1" @@ -640,22 +609,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - [[package]] name = "winapi-util" version = "0.1.8" @@ -665,31 +618,6 @@ dependencies = [ "windows-sys", ] -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "windows" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" -dependencies = [ - "windows-core", - "windows-targets", -] - -[[package]] -name = "windows-core" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" -dependencies = [ - "windows-targets", -] - [[package]] name = "windows-sys" version = "0.52.0" diff --git a/Cargo.toml b/Cargo.toml index 4b54705a..bbc11840 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,6 @@ arrayvec = "0.7.2" anyhow = "1.0.83" bitflags = "2.2.1" itertools = "0.13.0" -sysinfo = "0.30.12" [dev-dependencies] criterion = {version = "0.5.1", features = ["html_reports", "cargo_bench_support", "csv_output"]} diff --git a/README.md b/README.md index be787b6e..89c21ff5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Pabi [![Codecov](https://codecov.io/gh/kirillbobyrev/pabi/branch/main/graph/badge.svg)](https://codecov.io/gh/kirillbobyrev/pabi) -[![Lines of Code](https://tokei.rs/b1/github/kirillbobyrev/pabi?type=Rust)](https://github.com/kirillbobyrev/pabi/tree/main/src) [![Build](https://github.com/kirillbobyrev/pabi/actions/workflows/build.yml/badge.svg)](https://github.com/kirillbobyrev/pabi/actions/workflows/build.yml) [![Test Suite](https://github.com/kirillbobyrev/pabi/actions/workflows/test.yml/badge.svg)](https://github.com/kirillbobyrev/pabi/actions/workflows/test.yml) diff --git a/src/build.rs b/src/build.rs index 1d705413..b5fd4ae5 100644 --- a/src/build.rs +++ b/src/build.rs @@ -8,7 +8,7 @@ use std::{env, fs, process}; // TODO: This can fail at several levels: be more principled about it. fn git_revision_hash() -> String { let output = process::Command::new("git") - .args(["rev-parse", "HEAD"]) + .args(["rev-parse", "short", "HEAD"]) .output() .unwrap() .stdout; diff --git a/src/engine/mod.rs b/src/engine/mod.rs index e69de29b..8b137891 100644 --- a/src/engine/mod.rs +++ b/src/engine/mod.rs @@ -0,0 +1 @@ + diff --git a/src/lib.rs b/src/lib.rs index e8dcff90..8974194e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,10 +54,7 @@ pub mod evaluation; pub mod search; mod interface; -pub use interface::uci as uci; - - -use sysinfo::System; +pub use interface::uci; /// Full version of the engine, including commit hash. Produced by `build.rs`. pub const VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/version")); @@ -66,17 +63,6 @@ pub const BUILD_INFO: &str = include_str!(concat!(env!("OUT_DIR"), "/build_info" /// Prints information about the host system. pub fn print_system_info() { - println!( - "System: {}", - System::long_os_version().unwrap_or_else(|| "UNKNOWN".to_string()) - ); - let sys = System::new_all(); - // Convert returned bytes to GB. - println!("RAM: {:.2} GB", sys.total_memory() as f64 / 1e9); - match sys.physical_core_count() { - Some(cores) => println!("Physical cores: {cores}"), - None => println!("Physical cores: UNKNOWN"), - } if cfg!(target_feature = "bmi2") { println!("BMI2 is supported, move generation will use PEXT and PDEP to speed up"); } else { diff --git a/src/search/mcts.rs b/src/search/mcts.rs index e69de29b..8b137891 100644 --- a/src/search/mcts.rs +++ b/src/search/mcts.rs @@ -0,0 +1 @@ +