Skip to main content

Crate wrapc

Crate wrapc 

Source
Expand description

A zero-fuss, type-safe parser for rustc arguments, designed for RUSTC_WRAPPER tools.

Part of the Inherit ecosystem. For detailed documentation, protocol specification, and advanced usage examples, see the Inherit Book — wrapc chapter.

Structs§

Emit
Represents a parsed --emit directive.
Extern
Represents a parsed --extern directive.
Info
The core structure containing all parsed rustc arguments.
LibrarySearchPath
Represents a parsed -L [KIND=]PATH argument.
LinkLib
Represents a parsed -l [KIND[:MODIFIERS]=]NAME[:RENAME] argument.

Enums§

LibrarySearchPathKind
Kind of library search path passed via -L.
LinkLibKind
Kind of native library passed via -l.
ParseError
Errors that can occur during argument parsing.

Functions§

fetch
Fetches arguments from std::env::args() and parses them.
parse
Parses an iterator of strings into an Info struct.

Type Aliases§

LL
Just a convenient shortcut to LinkLib.
LLK
Just a convenient shortcut to LinkLibKind.
LSP
Just a convenient shortcut to LibrarySearchPath.
LSPK
Just a convenient shortcut to LibrarySearchPathKind.