From 934bfb356ade15dd6ea4a1333ab07af1d88f7858 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Mon, 9 Mar 2026 10:47:39 +0800 Subject: [PATCH 1/2] flake: cross-windows: Add mingw > cargo build --target x86_64-pc-windows-gnu -p framework_tool error: failed to run custom build command for `framework_tool v0.6.1 (/home/zoid/clone/framework-system/framework_tool)` Caused by: process didn't exit successfully: `/home/zoid/clone/framework-system/target/debug/build/framework_tool-c329672d9ff2ef23/build-script-build` (exit status: 101) --- stderr thread 'main' (120396) panicked at framework_tool/build.rs:7:14: called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... error: error calling dlltool 'x86_64-w64-mingw32-dlltool': No such file or directory (os error 2) Signed-off-by: Daniel Schaefer --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 2637398b..a7ad6a92 100644 --- a/flake.nix +++ b/flake.nix @@ -336,6 +336,7 @@ devShells.cross-windows = pkgs.mkShell { packages = [ rustToolchainWindows + mingw ]; # Ensure build scripts (e.g. libgit2-sys) use the native host compiler From 6ef123e881c8740a9c36d27eaab5d949228df2aa Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Mon, 9 Mar 2026 10:52:17 +0800 Subject: [PATCH 2/2] lock wmi at a compatible version until we next update it Signed-off-by: Daniel Schaefer --- Cargo.lock | 4 ++-- framework_lib/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e324a365..ece549f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1881,9 +1881,9 @@ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" [[package]] name = "wmi" -version = "0.18.0" +version = "0.17.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71d1d435f7745ba9ed55c43049d47b5fbd1104449beaa2afbc80a1e10a4a018" +checksum = "120d8c2b6a7c96c27bf4a7947fd7f02d73ca7f5958b8bd72a696e46cb5521ee6" dependencies = [ "chrono", "futures", diff --git a/framework_lib/Cargo.toml b/framework_lib/Cargo.toml index 5e7d7cf5..8c1e3220 100644 --- a/framework_lib/Cargo.toml +++ b/framework_lib/Cargo.toml @@ -43,7 +43,7 @@ uefi-raw = "0.13" plain = "0.2.3" [target.'cfg(windows)'.dependencies] -wmi = "0.18" +wmi = "~0.17.3" env_logger = "0.11" clap = { version = "4.5", features = ["derive", "cargo"] } clap-num = { version = "1.2.0" }