diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..83e9da5 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,19 @@ +[build] +target = "x86_64-pc-windows-msvc" + +[target.x86_64-pc-windows-msvc] +rustflags = [ + "-C", "link-arg=/OSVERSION:6.2", + "-C", "link-arg=/MACHINE:X64", + + "-C", "control-flow-guard=yes", + + "-C", "link-arg=/CETCOMPAT", + "-C", "link-arg=/force:guardehcont", + "-C", "link-arg=/guard:ehcont", + # "-Z", "ehcont-guard", # requires nightly; uncomment if using rustc nightly + + "-C", "link-arg=/DYNAMICBASE", + "-C", "link-arg=/NXCOMPAT", + "-C", "link-arg=/HIGHENTROPYVA", +]