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>
This commit is contained in:
vrubelroman 2026-10-30 14:34:19 +03:00
parent 2703e5de38
commit 1e0fb082e5
8 changed files with 1033 additions and 981 deletions

7
Cargo.lock generated
View file

@ -822,6 +822,7 @@ dependencies = [
"game-review",
"getrandom 0.3.4",
"image",
"js-sys",
"log",
"maia",
"online-games",
@ -840,6 +841,10 @@ dependencies = [
"trainer",
"uci",
"ureq",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
"web-time",
"whatlang",
"winresource",
"zip",
@ -1722,9 +1727,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
dependencies = [
"cfg-if",
"js-sys",
"libc",
"r-efi 5.3.0",
"wasip2",
"wasm-bindgen",
]
[[package]]