chessbaseLinux/Cargo.toml

68 lines
1.9 KiB
TOML
Raw Permalink Normal View History

[workspace]
resolver = "3"
members = [
"crates/chess-core",
"crates/chess-import",
"crates/uci",
"crates/openings",
"crates/game-review",
"crates/online-games",
"crates/releases",
"crates/mobile-api",
"crates/maia",
"crates/trainer",
"crates/play",
2026-10-28 12:32:39 +03:00
"crates/prep",
"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",
]
[workspace.package]
version = "2.1.1"
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"
# `Instant`/`SystemTime` that also work in a browser (std's panic there).
web-time = "1.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
egui = "=0.36.2"
eframe = { version = "=0.36.2", default-features = false, features = ["wgpu", "wayland", "x11", "accesskit", "default_fonts", "links"] }
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" }
chess-import = { path = "crates/chess-import" }
uci = { path = "crates/uci" }
maia = { path = "crates/maia" }
game-review = { path = "crates/game-review" }
chess-openings = { path = "crates/openings" }
online-games = { path = "crates/online-games" }
releases = { path = "crates/releases" }
trainer = { path = "crates/trainer" }
play = { path = "crates/play" }
2026-10-28 12:32:39 +03:00
prep = { path = "crates/prep" }
[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"