Crates.io | ruci |
lib.rs | ruci |
version | |
source | src |
created_at | 2024-04-05 17:38:44.385982+00 |
updated_at | 2025-03-11 17:32:21.975353+00 |
description | A UCI (Universal Chess Interface) crate. |
homepage | |
repository | https://github.com/tigerros/ruci |
max_upload_size | |
id | 1197553 |
Cargo.toml error: | TOML parse error at line 23, column 1 | 23 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Rust Universal Chess Interface.
This crate parses and creates UCI messages.
It follows the UCI standard and uses shakmaty
for relevant types.
See the examples for a demo on how to send and receive messages.
There's two other crates that I'm aware of which serve a similar purpose. Keep in mind that this is a shallow comparison, I haven't looked extensively and I am not an expert.
vampirc-uci
:
pest
for parsing (ruci does it manually).pest
and chrono
. Ruci only has shakmaty and two macros which don't get included in the final binary.send_message
and read_message
, where you want to specify which message you are sending and receiving.id
message, because the fields are baked into the whole enum.shakmaty-uci
:
vampirc-uci
, so all of the above bullet points apply, except:
nom
for parsing.engine-connection
: enables a structs to manage the IO when it comes to working with a UCI engine. Note that this will add tokio
and parking_lot
as dependencies. If you're making an engine, listen to stdin and parse it into a gui::Message
, then print a string representation of an engine::Message
.serde
: enables Serialize
and Deserialize
for most types. All of the implementations are derived with no parameters.