From 359c114c9f8de2015ce84f61647d0f34facd65ce Mon Sep 17 00:00:00 2001 From: neithanmo Date: Fri, 19 Apr 2024 06:57:47 -0600 Subject: [PATCH] Fix compilation issue as it was a cargo misconfiguration for the bindings generator --- app/rust/.cargo/config | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/rust/.cargo/config b/app/rust/.cargo/config index 90cae2ff6..e691e2b58 100644 --- a/app/rust/.cargo/config +++ b/app/rust/.cargo/config @@ -1,4 +1,11 @@ -[build] +[unstable] +build-std=["core"] +build-std-features=["panic_immediate_abort"] +target-applies-to-host = true +host-config = true + +[host] +rustflags = ["-Ctarget-feature=-crt-static"] [target.'cfg(all(target_arch = "arm", target_os = "none"))'] rustflags = [ @@ -8,6 +15,4 @@ rustflags = [ "-C", "link-arg=-Tlink.ld", "-C", "inline-threshold=0" ] -[unstable] -build-std=["core"] -build-std-features=["panic_immediate_abort"] +