Module native_libs

Source
Expand description

Parser for the -l command-line option, which links the generated crate to a native library.

(There is also a similar but separate syntax for #[link] attributes, which have their own parser in rustc_metadata.)

Structsยง

NativeLibParts ๐Ÿ”’
ParseNativeLibCx ๐Ÿ”’

Functionsยง

parse_and_apply_modifier ๐Ÿ”’
Parses one of the comma-separated modifiers (prefixed by + or -), and modifies native_lib appropriately.
parse_native_lib ๐Ÿ”’
Parses the value of a single -l option.
parse_native_libs ๐Ÿ”’
Parses all -l options.
split_native_lib_value ๐Ÿ”’
Splits a string of the form [KIND[:MODIFIERS]=]NAME[:NEW_NAME] into those individual parts. This cannot fail, but the resulting strings require further validation.