#link #windows-msvc #msvc #windows

no-std build link_args

Allows setting linker arugments at compile time without a build script. Currently only supports Windows MSVC toolchains.

5 unstable releases

0.6.0 Mar 29, 2021
0.5.1 Mar 27, 2021
0.5.0 Mar 27, 2021
0.4.1 Mar 24, 2021
0.4.0 Mar 24, 2021

#784 in Build Utils

Download history 170/week @ 2024-12-08 421/week @ 2024-12-15 45/week @ 2024-12-22 39/week @ 2024-12-29 137/week @ 2025-01-05 271/week @ 2025-01-12 235/week @ 2025-01-19 179/week @ 2025-01-26 444/week @ 2025-02-02 308/week @ 2025-02-09 386/week @ 2025-02-16 636/week @ 2025-02-23 125/week @ 2025-03-02 594/week @ 2025-03-09 121/week @ 2025-03-16 146/week @ 2025-03-23

1,025 downloads per month
Used in 3 crates

MIT OR Apache-2.0 OR Zlib

22KB
331 lines

Allows setting linker arugments at compile time without a build script. Currently only supports Windows MSVC toolchains.

Minimum Rust version: 1.51

Usage

Add this to your Cargo.toml:

[dependencies]
link_args = "0.6"

Examples

Set the stack size

// Reserve 8 MiB for the stack.
link_args::windows_msvc::stack_size!(0x800000);

Add a library

link_args::windows_msvc::default_lib!("kernel32.lib");

No runtime deps