chessbaseLinux/crates/play/Cargo.toml
vrubelroman 1e0fb082e5 online-games, play, prep: what needs processes or blocking requests is not built for a browser
online-games: the network part (lookups, probes, downloads into the database,
with their tests) moves to net.rs, built where a request may block a thread;
ureq is a dependency there only. The names, paths and states of the online
databases stay for every target.

play: the engines that play (Rodent) or judge (Maia's resignations) run as
processes driven from threads: not built for WebAssembly. getrandom has its
browser backend there.

prep: analyse (the job in engine processes) is native.

Nothing changes on the computer or Android; the tests pass as before.

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

19 lines
623 B
TOML

[package]
name = "play"
description = "A game against the computer in ChessPenguin: how it ends, the pause, resignation judged by an engine, Rodent and its files (the desktop and Android apps share it)"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
publish = false
[dependencies]
chess-core.workspace = true
shakmaty.workspace = true
uci.workspace = true
getrandom = "0.3"
# Random numbers in a browser (crypto.getRandomValues).
[target.'cfg(target_family = "wasm")'.dependencies]
getrandom = { version = "0.3", features = ["wasm_js"] }