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
--emitdirective. - Extern
- Represents a parsed
--externdirective. - Info
- The core structure containing all parsed
rustcarguments. - Library
Search Path - Represents a parsed
-L [KIND=]PATHargument. - LinkLib
- Represents a parsed
-l [KIND[:MODIFIERS]=]NAME[:RENAME]argument.
Enums§
- Library
Search Path Kind - Kind of library search path passed via
-L. - Link
LibKind - Kind of native library passed via
-l. - Parse
Error - 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
Infostruct.
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.