chore(deps): bump to latest stable versions

Bumps bytemuck 1.14->1.25, glam 0.27->0.33, rfd 0.15->0.17,
windows-sys 0.59->0.61, ureq 2->3. ureq 3 changed the agent API
and feature flags, so update_check.rs switches to Agent::config_builder
and body_mut().read_to_string(), and the feature toggles from tls
to rustls.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 4.7 committed 2026-05-23 22:21:30 +03:00
1 parent ecdb0cd0a0
commit 163725ca22
3 files changed
+57 -337

No files matched your search

+8 -5
View File
@@ -29,15 +29,18 @@ pub async fn check_for_update() -> Option<UpdateInfo> {
}
fn fetch_latest_if_outdated() -> Option<UpdateInfo> {
let body = ureq::AgentBuilder::new()
.timeout(std::time::Duration::from_secs(5))
let agent: ureq::Agent = ureq::Agent::config_builder()
.timeout_global(Some(std::time::Duration::from_secs(5)))
.build()
.into();
let body = agent
.get(RELEASES_API)
.set("User-Agent", concat!("OpenCADStudio/", env!("CARGO_PKG_VERSION")))
.set("Accept", "application/vnd.github+json")
.header("User-Agent", concat!("OpenCADStudio/", env!("CARGO_PKG_VERSION")))
.header("Accept", "application/vnd.github+json")
.call()
.ok()?
.into_string()
.body_mut()
.read_to_string()
.ok()?;
let latest = extract_string_field(&body, "tag_name")?
.trim_start_matches('v')