Adds a one-shot update check that runs on app boot and pops up a small
"Update Available" window when the GitHub releases API reports a newer
tag than this build's `CARGO_PKG_VERSION`.
- `src/update_check.rs` — async wrapper around a blocking `ureq` GET to
`api.github.com/repos/HakanSeven12/H7CAD/releases/latest`, returns
`Some(version)` when a newer release exists, `None` otherwise (silent
on network / parse failure so a missing connection never blocks
launch).
- `H7CAD::boot` chains a `Task::perform` next to the main-window open
so the check runs in parallel with first-paint.
- New window plumbed like the other floating panels (page setup, about,
etc.): `update_notice_window`/`update_notice_version` state, title
entry, `OsWindowClosed` cleanup, and a `ui::update_notice::view_window`
modal that shows installed vs. latest version plus "Later" /
"Open Release Page" buttons. Open routes through `open::that` to the
releases URL and dismisses the modal.
Dependency: adds `ureq = { version = "2", default-features = false,
features = ["tls"] }` — the smallest blocking HTTP client + TLS combo
that doesn't drag in an async runtime.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
27 lines
932 B
TOML
27 lines
932 B
TOML
[package]
|
|
name = "H7CAD"
|
|
version = "0.2.9"
|
|
edition = "2021"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
iced = { version = "0.14", features = ["debug", "image", "svg", "advanced", "canvas"] }
|
|
bytemuck = { version = "1.14", features = ["derive"] }
|
|
glam = { version = "0.27", features = ["bytemuck"] }
|
|
truck-modeling = "0.6"
|
|
truck-meshalgo = { version = "0.4", default-features = false, features = ["tessellation"] }
|
|
truck-polymesh = "0.6"
|
|
rfd = "0.15"
|
|
acadrust = "0.3.4"
|
|
open = "5"
|
|
printpdf = "0.9.1"
|
|
flate2 = "1"
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "bmp", "tiff"] }
|
|
rayon = "1"
|
|
ureq = { version = "2", default-features = false, features = ["tls"] }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows-sys = { version = "0.59", features = ["Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
|
|
|
|
[patch.crates-io]
|
|
acadrust = { git = "https://github.com/hakanaktt/acadrust", branch = "main" }
|