From b39720579ca4a1eff06e40fb77914db4eb750c3e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 05:04:07 +0000 Subject: [PATCH 1/2] Bump sysinfo from 0.39.6 to 0.40.0 Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.39.6 to 0.40.0. - [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/main/CHANGELOG.md) - [Commits](https://github.com/GuillaumeGomez/sysinfo/compare/v0.39.6...v0.40.0) --- updated-dependencies: - dependency-name: sysinfo dependency-version: 0.40.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c00366c..cf2a5c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3746,9 +3746,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.39.6" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2071df9448915b71c4fe6d25deaf1c22f12bd234f01540b77312bb8e41361e6" +checksum = "110e37d98880fd804cd47509b90a8444f7aaaab655ae625e83cd442a8bc2ebf2" dependencies = [ "libc", "memchr", diff --git a/Cargo.toml b/Cargo.toml index a5b0b30..5c6400a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,5 +41,5 @@ serde_derive = "1.0.229" serde_json = "1.0.151" static_init = "1.0.4" sys-locale = "0.3.2" -sysinfo = "0.39.6" +sysinfo = "0.40.0" ureq = { version = "3.4.2", features = ["json"] } From a5f061847aa1f8d248e3683fafcb5ee1b4d94015 Mon Sep 17 00:00:00 2001 From: Mikhail Manturov <2442833+insolor@users.noreply.github.com> Date: Sun, 1 Nov 2026 13:19:10 +0000 Subject: [PATCH 2/2] Fix build issues after update of sysinfo from 0.39.6 to 0.40.0 --- src/utils.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index a98c784..bccedf5 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -26,7 +26,11 @@ pub fn scan_df() -> Option { } pub async fn is_df_running() -> bool { - System::new_all().processes().values().any(|val: &Process| { + let Ok(system) = System::new_all() else { + return false; + }; + + system.processes().values().any(|val: &Process| { [ OsStr::new("Dwarf Fortress.exe"), OsStr::new("dwarfort"),