- The «checking your engine» toast only while an engine is really being checked. - The probe starts the engine by the path of the settings or PATH (a snap or a wrapper looks at its name); the verdict stays the real file's. - A Stockfish 19 that does not finish the check in time: its own text, kept in memory until the next request, never on the disk. - Quitting waits for probes 2 s at most; an engine hung in its handshake dies with the probe's thread (uci: EngineConfig::kill_with_parent, PR_SET_PDEATHSIG). - touch_database: a link to a database on the shelf is that database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.1 KiB
TOML
34 lines
1.1 KiB
TOML
[package]
|
|
name = "uci"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
description = "UCI chess engine supervisor: a process, or a Web Worker in a browser (no UI dependencies)"
|
|
|
|
[dependencies]
|
|
thiserror.workspace = true
|
|
web-time.workspace = true
|
|
|
|
# The engine as a Web Worker in a browser.
|
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
|
wasm-bindgen = "0.2.129"
|
|
js-sys = "0.3"
|
|
web-sys = { version = "0.3", features = ["Worker", "MessageEvent", "ErrorEvent"] }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
# nice(2) for EngineConfig::nice, prctl(2) for kill_with_parent (std has neither).
|
|
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
|
|
|
|
# tests/worker.rs: the worker transport in a browser (docs/dev/web.md).
|
|
[target.'cfg(target_family = "wasm")'.dev-dependencies]
|
|
wasm-bindgen-test = "0.3"
|
|
wasm-bindgen-futures = "0.4"
|
|
web-sys = { version = "0.3", features = ["Window", "Blob", "BlobPropertyBag", "Url"] }
|