chessbaseLinux/crates/uci/Cargo.toml
vrubelroman a66d1016d9 uci: the protocol as a machine without I/O, the process as its transport; chess-import: passes and positional I/O on a target without threads
The handshake and the session after it move to uci::protocol: lines, commands
and the time go in, lines to write and events come out, deadlines are named
instead of waited for. The child process with its reader and supervisor
threads is now one transport of it (process.rs, not built for WebAssembly).
Behaviour on the computer and Android is unchanged; the fake engine tests pass
as before, and the machine has its own tests.

chess-import: the parallel passes (booster, position search, opening tallies)
go through parallel::map, which runs a single worker on the calling thread;
on WebAssembly there is one worker (std threads panic there). read_at and
write_all_at have a portable form through the file cursor for targets other
than Unix and Windows. The bench command is not built for WebAssembly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 14:19:21 +03:00

22 lines
566 B
TOML

[package]
name = "uci"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
description = "UCI chess engine process supervisor (no UI dependencies)"
[dependencies]
thiserror.workspace = true
web-time.workspace = true
[target.'cfg(unix)'.dependencies]
# nice(2) for EngineConfig::nice (std has no way to lower a child's priority).
libc = "0.2"
# Test helper: deterministic fake UCI engine used by tests/ via CARGO_BIN_EXE_fake_uci.
[[bin]]
name = "fake_uci"
path = "src/bin/fake_uci.rs"
test = false
doc = false