rustc_link_lib_framework

Function rustc_link_lib_framework 

Source
pub fn rustc_link_lib_framework<M, I>(
    modifiers: impl Into<VarArg<M>>,
    lib_names: impl Into<VarArg<I>>,
)
where I: IntoIterator, I::Item: AsRef<str>, M: IntoIterator<Item = I::Item>,
Expand description

rustc_link_lib alternative that automatically passes framework=.

cargo_build::rustc_link_lib_framework([], ["nghttp2", "libssl", "libcrypto"]);

cargo_build::rustc_link_lib_framework(
    ["+whole_archive", "-bundle", "-verbatim"],
    ["nghttp2", "libssl", "libcrypto"],
);

See also rustc_link_lib! macro with compile-time checked formatting, variable number of arguments and improved syntax.

https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib