Skip to main content

try_emit_link_directives

Function try_emit_link_directives 

Source
pub fn try_emit_link_directives<P: AsRef<Path>>(
    build: &Build,
    library: P,
) -> Result<(), Error>
Expand description

Emit the cargo: lines that link a static library into the crate being built, the way Build::compile does after creating its archive.

This will return a result instead of panicking; see emit_link_directives for the complete description.