Allows setting linker arugments at compile time without a build script. Currently only supports Windows MSVC toolchains.
Minimum Rust version: 1.51
Add this to your Cargo.toml
:
[dependencies]
link_args = "0.6"
// Reserve 8 MiB for the stack.
link_args::windows_msvc::stack_size!(0x800000);
link_args::windows_msvc::default_lib!("kernel32.lib");