I’m trying to create an executable in rust and want it to be linked statically to the CRT. I’ve tried putting the following in the Cargo.toml:
rustflags = ["-C target-feature=+crt-static"]
but when I run
cargo build it throws the following warning:
warning: unused manifest key: target.x86_64-pc-windows-msvc.rustflags
What am I doing wrong?
Note:I’m using the latest nightly.