1 # Link the MSVC C runtime statically on Windows. Without this the binary
2 # imports VCRUNTIME140.dll and the UCRT api-ms-win-crt-*.dll set, and on a
3 # machine without the Visual C++ Redistributable it dies at load time with
4 # STATUS_DLL_NOT_FOUND (0xC0000135) before main runs. winget ships sigit as a
5 # portable exe, so there is no installer to bring the runtime along.
6 [target.'cfg(all(windows, target_env = "msvc"))']
7 rustflags = ["-C", "target-feature=+crt-static"]