From 38ce3c0289a9239b5a9d84ef3534fc5738acf94a Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Wed, 20 May 2026 13:42:10 +0000 Subject: [PATCH] fix(rust): enable static CRT linking for Linux Rust targets --- changelog.md | 8 ++++++++ rust/.cargo/config.toml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/changelog.md b/changelog.md index 39cdd28..b397bcc 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## Pending + +### Fixes + +- enable static CRT linking for Linux Rust targets (rust) + - adds x86_64-unknown-linux-gnu target configuration with static CRT rustflags + - enables static CRT rustflags for aarch64-unknown-linux-gnu alongside the existing cross-linker + ## 2026-05-02 - 2.10.0 - feat(rustdb) extract service API logic into a dedicated Rust module and expose shared service types diff --git a/rust/.cargo/config.toml b/rust/.cargo/config.toml index 3c32d25..7376c81 100644 --- a/rust/.cargo/config.toml +++ b/rust/.cargo/config.toml @@ -1,2 +1,6 @@ +[target.x86_64-unknown-linux-gnu] +rustflags = ["-C", "target-feature=+crt-static"] + [target.aarch64-unknown-linux-gnu] linker = "aarch64-linux-gnu-gcc" +rustflags = ["-C", "target-feature=+crt-static"]