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"] +