# Cargo only honors `.cargo/config.toml` files in *ancestor* directories of # the workspace root, so the one inside vendor/rustdesk/.cargo/ is invisible # to the hello-agent build. We mirror the relevant target settings here. # # +crt-static: link the static MSVC C runtime (libcmt) to match vcpkg's # x64-windows-static triplet. Without this, native deps installed by vcpkg # pull in libcmt while Rust's default toolchain links msvcrt (the dynamic # CRT), and the linker emits LNK1169 (multiply defined symbols) for every # overlapping CRT entry. [target.x86_64-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] [target.i686-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static", "-C", "link-args=/NODEFAULTLIB:MSVCRT"] [net] # Use the system git binary for fetching git deps. Cargo's built-in libgit2 # fetch path occasionally trips up on self-hosted runners with proxies or # unusual auth setups; the system git is more forgiving. git-fetch-with-cli = true