2026-10-18 01:54:06 +03:00
|
|
|
[workspace]
|
|
|
|
|
resolver = "3"
|
Android stage 0: the core opens databases without paths; the mobile-api bridge
chess-import opens a database from its content (PGN, zip, 7z, cbv) and a
ChessBase database from the contents of its files: Android hands over file
descriptors, not paths. The text of comments as shown moves to chess-core
(comment_display_text), so the phone and the desktop show the same.
crates/mobile-api: a thin UniFFI bridge — open a database from a descriptor, a
ChessBase folder's files, or a path (tests); game rows a page at a time; a game
as a tree of moves with positions, last-move squares, NAGs and comments. It
builds for arm64-v8a and x86_64 with cargo-ndk (NDK r30, API 31) and its Kotlin
bindings generate with `cargo run -p mobile-api --features bindgen --bin
uniffi-bindgen`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 00:43:54 +03:00
|
|
|
members = [
|
|
|
|
|
"crates/chess-core",
|
|
|
|
|
"crates/chess-import",
|
|
|
|
|
"crates/uci",
|
2026-10-28 18:37:42 +03:00
|
|
|
"crates/openings",
|
Android: game report — mistakes, blunders and accuracy, as on the desktop
The game analysis of the desktop (evaluations of the main line, judgements, accuracy,
cache and the engine job) moves into a shared crate, game-review, so both apps give the
same numbers. The desktop uses it unchanged in behaviour.
On Android, ⋮ → «Game analysis» runs Stockfish over the main line in its own process
(the live engine waits): an evaluation graph and a status row between the board and the
notation, marks in the notation, the better line of an error on the board, a report sheet
with both players side by side. Games with [%eval] and games analysed before show their
report at once. The analysis stops with the screen and goes on after it, also after the
phone is turned, and is cached as it goes.
Reviewed by an independent tester and designer (docs/design/android-ui.md §21, §22).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:10:58 +03:00
|
|
|
"crates/game-review",
|
Android: games from Lichess and Chess.com, newest first, with «Download new games»
The downloads of the desktop (lookup by nickname, one database per site or both in one,
resuming without duplicates, games still being played fetched once they end) move into a
shared crate, online-games; the desktop keeps its window on top of it.
On Android, «Add a database» → «Games from Lichess and Chess.com»: a nickname, what each
site has, the download with its progress. It belongs to the app, not to the screen: the
list of databases shows how it goes and says how it ended. «Download new games» in the
database's menu and over its games list fetches only the new ones. The games of a
downloaded database are listed from the most recent one (by UTC date and time, both sites
interleaved). Both builds may now use the internet, only when the user asks.
Reviewed by an independent tester and designer (docs/design/android-ui.md §23, §24).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:37:16 +03:00
|
|
|
"crates/online-games",
|
Android: the app updates itself; one release check for the desktop and the phone
- crates/releases: the latest release on GitHub, its files and SHA-256 sums, shared by
the desktop updater and the phone (desktop update.rs keeps its installers).
- mobile-api check_release: a newer release with its APKs and sums; a desktop-only
release is no update, one without the light APK's sum cannot be checked.
- Android (android-ui.md §25): a check at start and on return once a day (switch and
«Check now» in About), a card over the databases, a sheet through the install
permission, the download (DownloadManager), the SHA-256, the full build keeping its
engine network, and PackageInstaller; the state survives restarts, the update's
snackbar waits for a screen. Network state permission for both builds (the full one
crashed without it). Debug builds may ask a test server (CP_UPDATE_API).
- Release notes on GitHub come from this version's CHANGELOG section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:42:27 +03:00
|
|
|
"crates/releases",
|
Android stage 0: the core opens databases without paths; the mobile-api bridge
chess-import opens a database from its content (PGN, zip, 7z, cbv) and a
ChessBase database from the contents of its files: Android hands over file
descriptors, not paths. The text of comments as shown moves to chess-core
(comment_display_text), so the phone and the desktop show the same.
crates/mobile-api: a thin UniFFI bridge — open a database from a descriptor, a
ChessBase folder's files, or a path (tests); game rows a page at a time; a game
as a tree of moves with positions, last-move squares, NAGs and comments. It
builds for arm64-v8a and x86_64 with cargo-ndk (NDK r30, API 31) and its Kotlin
bindings generate with `cargo run -p mobile-api --features bindgen --bin
uniffi-bindgen`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 00:43:54 +03:00
|
|
|
"crates/mobile-api",
|
2026-10-25 03:56:45 +03:00
|
|
|
"crates/maia",
|
2026-10-26 01:00:11 +03:00
|
|
|
"crates/trainer",
|
2026-10-26 01:10:34 +03:00
|
|
|
"crates/play",
|
Opponent prep: the `prep` crate (openings only)
A new crate shared by the apps, no UI: what a player of a database plays
in the opening and where in the opening he goes wrong.
- Player: candidates from the database's names (initials with a full
stop work), one or several ids, White, Black or both.
- Lines: the first N plies (default 20) of the main lines, position keys,
UCI/SAN, result from the player's side, full date, opponent's Elo;
games from a set-up position are skipped.
- Repertoire tree per colour by move order with position keys:
games (+/=/-), last date, average opponent Elo, game list,
transpositions marked.
- Opening names from lichess-org/chess-openings (CC0; revision and
SHA-256 pinned, files in crates/prep/data, THIRD_PARTY_NOTICES): the
deepest named position of a line, families and variations with their
first moves, grouped by name.
- Book: a second database (or the same one without the player's games)
says where each game left it (first position with fewer than T games,
T = 5) and whose move it was.
- Engine: every distinct position of the lines once through
game_review::run, judged with the game analysis rules for the player's
moves only; errors by opening and the repeated ones (same position,
same move in two or more games); evaluations cached per position across
reports, the report cached by database, player and plies.
- examples/prep_report.rs prints it all for a database and a player.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-28 12:32:39 +03:00
|
|
|
"crates/prep",
|
Android stage 0: the core opens databases without paths; the mobile-api bridge
chess-import opens a database from its content (PGN, zip, 7z, cbv) and a
ChessBase database from the contents of its files: Android hands over file
descriptors, not paths. The text of comments as shown moves to chess-core
(comment_display_text), so the phone and the desktop show the same.
crates/mobile-api: a thin UniFFI bridge — open a database from a descriptor, a
ChessBase folder's files, or a path (tests); game rows a page at a time; a game
as a tree of moves with positions, last-move squares, NAGs and comments. It
builds for arm64-v8a and x86_64 with cargo-ndk (NDK r30, API 31) and its Kotlin
bindings generate with `cargo run -p mobile-api --features bindgen --bin
uniffi-bindgen`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 00:43:54 +03:00
|
|
|
"apps/desktop",
|
Web version, stage 1: the interface as a library over a platform layer; apps/web
apps/desktop becomes a library (chesspenguin_app: the interface) and a thin
binary; apps/web starts the same interface in a page's canvas (eframe's
WebRunner). cfg(web) (build.rs) marks WebAssembly in a browser.
The platform layer (apps/desktop/src/platform): the program's folders, files,
background work, the files the user opens or saves, the clipboard and what
the platform offers (CAPS). On a computer it is the system as before; in a
browser the program's data lives in IndexedDB behind an in-memory file tree
loaded before the start, the files the user opens are read into it for the
session (only read), background jobs run on the page's thread after the
frame, the clipboard is read through the browser's API, sounds play through
audio elements, a game is saved as a download.
What a browser does not have is not built for it: updates, the online games
window and its probe, engine processes (analysis starts a Web Worker there;
the review and preparation jobs, Rodent and the judge are native), blocking
requests (engine, Maia and Rodent downloads report no download for the
platform, translation reports that it makes no requests). The desktop
program behaves as before; its build finds unused code (the web build
compiles parts it never shows).
apps/web: the entry point, the page /app/ (device check before anything large
is loaded: phones and tablets get the page about the apps in the site's nine
languages, keys app_* in website/site/i18n), build.sh (wasm-bindgen, profile
web), a static server and headless Firefox checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 15:09:17 +03:00
|
|
|
"apps/web",
|
Android stage 0: the core opens databases without paths; the mobile-api bridge
chess-import opens a database from its content (PGN, zip, 7z, cbv) and a
ChessBase database from the contents of its files: Android hands over file
descriptors, not paths. The text of comments as shown moves to chess-core
(comment_display_text), so the phone and the desktop show the same.
crates/mobile-api: a thin UniFFI bridge — open a database from a descriptor, a
ChessBase folder's files, or a path (tests); game rows a page at a time; a game
as a tree of moves with positions, last-move squares, NAGs and comments. It
builds for arm64-v8a and x86_64 with cargo-ndk (NDK r30, API 31) and its Kotlin
bindings generate with `cargo run -p mobile-api --features bindgen --bin
uniffi-bindgen`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 00:43:54 +03:00
|
|
|
]
|
2026-10-18 01:54:06 +03:00
|
|
|
|
|
|
|
|
[workspace.package]
|
2026-11-06 01:31:15 +03:00
|
|
|
version = "2.3.0"
|
2026-10-18 01:54:06 +03:00
|
|
|
edition = "2024"
|
|
|
|
|
rust-version = "1.97"
|
|
|
|
|
license = "GPL-3.0-or-later"
|
|
|
|
|
authors = ["vrubelroman <vrubelroman@gmail.com>"]
|
|
|
|
|
repository = "https://github.com/vrubelroman/chessPenguin"
|
|
|
|
|
homepage = "https://github.com/vrubelroman/chessPenguin"
|
|
|
|
|
|
|
|
|
|
[workspace.dependencies]
|
|
|
|
|
shakmaty = "0.30.2"
|
|
|
|
|
pgn-reader = "0.29.1"
|
|
|
|
|
encoding_rs = "0.8"
|
|
|
|
|
thiserror = "2"
|
2026-10-30 14:19:21 +03:00
|
|
|
# `Instant`/`SystemTime` that also work in a browser (std's panic there).
|
|
|
|
|
web-time = "1.1"
|
2026-10-18 01:54:06 +03:00
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
|
serde_json = "1"
|
|
|
|
|
egui = "=0.36.2"
|
Settings → About: version, website, release notes, sources, support, donations
The About tab shows the version and links to the website (in the interface language),
the release notes of this version, the source code and the support contacts; "Support
the project" opens chess.vrubel.xyz/donate, which the website server sends on to
DONATE_URL (the support section while it is not set), so the donation service can change
without a new release. Links open in the browser (eframe "links": webbrowser, MIT OR
Apache-2.0).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 15:11:25 +03:00
|
|
|
eframe = { version = "=0.36.2", default-features = false, features = ["wgpu", "wayland", "x11", "accesskit", "default_fonts", "links"] }
|
2026-10-18 01:54:06 +03:00
|
|
|
egui_extras = { version = "=0.36.2", features = ["svg", "image"] }
|
|
|
|
|
image = { version = "0.25", default-features = false, features = ["jpeg", "png"] }
|
|
|
|
|
rfd = "0.17"
|
|
|
|
|
arboard = { version = "3.6", features = ["wayland-data-control"] }
|
|
|
|
|
rodio = "0.22"
|
|
|
|
|
directories = "6"
|
|
|
|
|
chess-core = { path = "crates/chess-core" }
|
Open ChessBase databases (.cbh, .cbv) and zip/7z archives
New crate chess-import converts non-PGN sources to PGN in memory and returns
a PgnDatabase, so the library, notation and analysis work unchanged:
- .cbv archives (container rewritten after uncbv), .cbh with companion files
(layout after the public Morphy format description): games, variations,
comments with per-database code page detection, NAGs, squares/arrows, set-up
positions, time spent, book chapters (guiding texts) as move-less records;
- ChessBase figurines become piece letters, diagram/object markers handled,
Western names in Cyrillic databases read correctly;
- .zip/.7z with PGN (own encoding each), .cbh and .cbv; duplicates skipped;
- .cbz/encrypted archives and 2CBH rejected with clear messages.
Library: '+ Add database', format shown, import notes; comments keep
paragraph breaks. Tests on the user's sample books (skipped when absent).
Also: AUR PKGBUILD for 0.2.0 with the bundled Stockfish.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 13:18:27 +03:00
|
|
|
chess-import = { path = "crates/chess-import" }
|
2026-10-18 01:54:06 +03:00
|
|
|
uci = { path = "crates/uci" }
|
2026-10-25 03:56:45 +03:00
|
|
|
maia = { path = "crates/maia" }
|
Android: game report — mistakes, blunders and accuracy, as on the desktop
The game analysis of the desktop (evaluations of the main line, judgements, accuracy,
cache and the engine job) moves into a shared crate, game-review, so both apps give the
same numbers. The desktop uses it unchanged in behaviour.
On Android, ⋮ → «Game analysis» runs Stockfish over the main line in its own process
(the live engine waits): an evaluation graph and a status row between the board and the
notation, marks in the notation, the better line of an error on the board, a report sheet
with both players side by side. Games with [%eval] and games analysed before show their
report at once. The analysis stops with the screen and goes on after it, also after the
phone is turned, and is cached as it goes.
Reviewed by an independent tester and designer (docs/design/android-ui.md §21, §22).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:10:58 +03:00
|
|
|
game-review = { path = "crates/game-review" }
|
2026-10-28 18:37:42 +03:00
|
|
|
chess-openings = { path = "crates/openings" }
|
Android: games from Lichess and Chess.com, newest first, with «Download new games»
The downloads of the desktop (lookup by nickname, one database per site or both in one,
resuming without duplicates, games still being played fetched once they end) move into a
shared crate, online-games; the desktop keeps its window on top of it.
On Android, «Add a database» → «Games from Lichess and Chess.com»: a nickname, what each
site has, the download with its progress. It belongs to the app, not to the screen: the
list of databases shows how it goes and says how it ended. «Download new games» in the
database's menu and over its games list fetches only the new ones. The games of a
downloaded database are listed from the most recent one (by UTC date and time, both sites
interleaved). Both builds may now use the internet, only when the user asks.
Reviewed by an independent tester and designer (docs/design/android-ui.md §23, §24).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:37:16 +03:00
|
|
|
online-games = { path = "crates/online-games" }
|
Android: the app updates itself; one release check for the desktop and the phone
- crates/releases: the latest release on GitHub, its files and SHA-256 sums, shared by
the desktop updater and the phone (desktop update.rs keeps its installers).
- mobile-api check_release: a newer release with its APKs and sums; a desktop-only
release is no update, one without the light APK's sum cannot be checked.
- Android (android-ui.md §25): a check at start and on return once a day (switch and
«Check now» in About), a card over the databases, a sheet through the install
permission, the download (DownloadManager), the SHA-256, the full build keeping its
engine network, and PackageInstaller; the state survives restarts, the update's
snackbar waits for a screen. Network state permission for both builds (the full one
crashed without it). Debug builds may ask a test server (CP_UPDATE_API).
- Release notes on GitHub come from this version's CHANGELOG section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:42:27 +03:00
|
|
|
releases = { path = "crates/releases" }
|
2026-10-26 01:00:11 +03:00
|
|
|
trainer = { path = "crates/trainer" }
|
2026-10-26 01:10:34 +03:00
|
|
|
play = { path = "crates/play" }
|
Opponent prep: the `prep` crate (openings only)
A new crate shared by the apps, no UI: what a player of a database plays
in the opening and where in the opening he goes wrong.
- Player: candidates from the database's names (initials with a full
stop work), one or several ids, White, Black or both.
- Lines: the first N plies (default 20) of the main lines, position keys,
UCI/SAN, result from the player's side, full date, opponent's Elo;
games from a set-up position are skipped.
- Repertoire tree per colour by move order with position keys:
games (+/=/-), last date, average opponent Elo, game list,
transpositions marked.
- Opening names from lichess-org/chess-openings (CC0; revision and
SHA-256 pinned, files in crates/prep/data, THIRD_PARTY_NOTICES): the
deepest named position of a line, families and variations with their
first moves, grouped by name.
- Book: a second database (or the same one without the player's games)
says where each game left it (first position with fewer than T games,
T = 5) and whose move it was.
- Engine: every distinct position of the lines once through
game_review::run, judged with the game analysis rules for the player's
moves only; errors by opening and the repeated ones (same position,
same move in two or more games); evaluations cached per position across
reports, the report cached by database, player and plies.
- examples/prep_report.rs prints it all for a database and a player.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-28 12:32:39 +03:00
|
|
|
prep = { path = "crates/prep" }
|
2026-10-18 01:54:06 +03:00
|
|
|
|
|
|
|
|
[profile.dev.package."*"]
|
|
|
|
|
opt-level = 2
|
Web version, stage 1: the interface as a library over a platform layer; apps/web
apps/desktop becomes a library (chesspenguin_app: the interface) and a thin
binary; apps/web starts the same interface in a page's canvas (eframe's
WebRunner). cfg(web) (build.rs) marks WebAssembly in a browser.
The platform layer (apps/desktop/src/platform): the program's folders, files,
background work, the files the user opens or saves, the clipboard and what
the platform offers (CAPS). On a computer it is the system as before; in a
browser the program's data lives in IndexedDB behind an in-memory file tree
loaded before the start, the files the user opens are read into it for the
session (only read), background jobs run on the page's thread after the
frame, the clipboard is read through the browser's API, sounds play through
audio elements, a game is saved as a download.
What a browser does not have is not built for it: updates, the online games
window and its probe, engine processes (analysis starts a Web Worker there;
the review and preparation jobs, Rodent and the judge are native), blocking
requests (engine, Maia and Rodent downloads report no download for the
platform, translation reports that it makes no requests). The desktop
program behaves as before; its build finds unused code (the web build
compiles parts it never shows).
apps/web: the entry point, the page /app/ (device check before anything large
is loaded: phones and tablets get the page about the apps in the site's nine
languages, keys app_* in website/site/i18n), build.sh (wasm-bindgen, profile
web), a static server and headless Firefox checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 15:09:17 +03:00
|
|
|
|
|
|
|
|
# The web version (apps/web/build.sh): small to download, the release otherwise.
|
|
|
|
|
[profile.web]
|
|
|
|
|
inherits = "release"
|
|
|
|
|
opt-level = "s"
|
|
|
|
|
lto = "fat"
|
|
|
|
|
codegen-units = 1
|
|
|
|
|
panic = "abort"
|