build

Macro rustc_flags

source
macro_rules! rustc_flags {
    ($($tokens:tt)*) => { ... };
}
Expand description

The rustc_flags instruction tells Cargo to pass the given space-separated flags to the compiler. This only allows the -l and -L flags, and is equivalent to using rustc-link-lib and rustc-link-search.

For more information, see this cargo reference.

ยงExamples

basic use:

rustc_flags!("-lfoo");
rustc_flags!(r#"-L"{}""#, "/lib")