From ef22ae0c6d03296f69d0d53f13d1ab61f444f952 Mon Sep 17 00:00:00 2001 From: Jakub Panek Date: Thu, 24 Oct 2024 10:54:28 +0200 Subject: [PATCH] cargo: link statically vcruntime --- .cargo/config.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..c4e5f395 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,3 @@ +# Link runtime statically so Visual C++ Redist is not required +[target.'cfg(all(windows, target_env = "msvc"))'] +rustflags = ["-C", "target-feature=+crt-static"]