Skip to content

ChrisDenton/link_args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");

About

Allows setting linker arguments in main.rs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages