From d2ffeb2164dcb5527502ee1e76c14a8461c6092c Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Sun, 4 Oct 2026 20:14:01 +0800 Subject: [PATCH] Fix UEFI build by forcing software SHA-1 Compiling the sha1 crate for x86_64-unknown-uefi with rustc 1.93 fails inside LLVM with "Do not know how to split the result of this operator" in its runtime CPU feature detection path. Use the force-soft feature, as already done for sha2, so only the portable implementation is built. Signed-off-by: Daniel Schaefer --- framework_lib/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework_lib/Cargo.toml b/framework_lib/Cargo.toml index adcff4c..890b854 100644 --- a/framework_lib/Cargo.toml +++ b/framework_lib/Cargo.toml @@ -28,7 +28,7 @@ built = { version = "0.8", features = ["chrono", "git2"] } [dependencies] lazy_static = "1.4.0" dmidecode = { version = "1", default-features = false } -sha1 = { version = "0.10.6", default-features = false } +sha1 = { version = "0.10.6", default-features = false, features = [ "force-soft" ] } sha2 = { version = "0.10.8", default-features = false, features = [ "force-soft" ] } regex = { version = "1.11.1", default-features = false } num = { version = "0.4", default-features = false }