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>
19 lines
623 B
TOML
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"] }
|