mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-11-16 23:24:31 +00:00
Cards wrote "Last updated" as a fixed 07/10/2026 while the table, app page and release notes said "Oct 7, 2026", and every date was the UTC day, so a release published late on the 7th UTC read as the 7th in Tokyo. local_time::civil adds the system zone's offset at that instant (jiff on the desktop, which re-reads the zone every few minutes; the browser's Date on the web) and falls back to UTC when the zone can't be read. date_text is the one formatter.
38 lines
1.3 KiB
TOML
38 lines
1.3 KiB
TOML
[package]
|
|
name = "artcraft-launcher-ui-egui"
|
|
description = "ArtCraft Launcher's egui interface, shared by the desktop and web builds"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
artcraft-launcher-core = { workspace = true }
|
|
egui = { workspace = true }
|
|
egui_extras = { workspace = true, features = ["image", "svg"] }
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
|
|
serde = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
# The OS's preferred UI languages, without spawning `defaults` or `reg.exe`.
|
|
sys-locale = "0.3"
|
|
# Finding the Simplified Chinese face in a system font collection; egui already uses it.
|
|
skrifa = { version = "0.44", default-features = false, features = ["std"] }
|
|
# The system time zone, so dates read as this computer's calendar; already in the desktop build.
|
|
jiff = "0.2"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
# The browser's time zone, for the same dates.
|
|
js-sys = "0.3"
|
|
wasm-bindgen = "0.2"
|
|
|
|
[dev-dependencies]
|
|
serde_json = { workspace = true }
|
|
egui_kittest = { workspace = true, features = ["wgpu", "snapshot"] }
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
|