link_args

Crates.iolink_args
lib.rslink_args
version0.6.0
sourcesrc
created_at2021-03-24 19:18:00.087036
updated_at2021-03-29 16:41:44.522672
descriptionAllows setting linker arugments at compile time without a build script. Currently only supports Windows MSVC toolchains.
homepage
repositoryhttps://github.com/ChrisDenton/link_args
max_upload_size
id373028
size21,340
Chris Denton (ChrisDenton)

documentation

README

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");
Commit count: 15

cargo fmt