# Corrosion Host Agent — cross-compilation configuration # # Deploy targets: # Linux: x86_64-unknown-linux-musl (fully static — runs on any distro) # Windows: x86_64-pc-windows-msvc (build via `cargo xwin build` on non-Windows) # # Prerequisites on macOS: # brew install filosottile/musl-cross/musl-cross (x86_64-linux-musl-gcc) # cargo install cargo-xwin (bundles MSVC CRT + lld-link) [target.x86_64-unknown-linux-musl] linker = "x86_64-linux-musl-gcc" [env] CC_x86_64_unknown_linux_musl = "x86_64-linux-musl-gcc" [target.x86_64-pc-windows-msvc] linker = "lld-link" # Statically link the MSVC CRT so the agent runs on fresh Windows installs # without the Visual C++ Redistributable (otherwise: STATUS_DLL_NOT_FOUND on # any machine missing VCRUNTIME140.dll — most fresh OEM images). rustflags = ["-C", "target-feature=+crt-static"]