Re-exportsΒ§
use std::str::FromStr;π
ModulesΒ§
- cgopts π
- dbopts π
- desc π
- mitigation_
coverage π - parse π
- target_
modifier_ πconsistency_ check
MacrosΒ§
- hash_
opt π - hash_
substruct π - insert π
- options π
- Defines all
CodegenOptions/DebuggingOptionsfields and parsers all at once. The goal of this macro is to define an interface that can be programmatically used by the option parser to initialize the struct without hardcoding field names all over the place. - redirect_
field π - setter_
for π - top_
level_ πoptions
StructsΒ§
- Codegen
Options π - Collected
Options π - Extended
Target πModifier Info - Extended target modifier info. For example, when external target modifier is β-Zregparm=2β: Target modifier enum value + user value (β2β) from external crate is converted into description: prefix (βZβ), name (βregparmβ), tech value (βSome(2)β).
- Option
Desc π - Options π
- The top-level command-line options struct.
- Target
Modifier π - A recorded -Zopt_name=opt_value (or -Copt_name=opt_value) which alter the ABI or effectiveness of exploit mitigations.
- Unstable
Options π
EnumsΒ§
- Codegen
Options πTarget Modifiers - Options
Target πModifiers - Removed
Option π - Indicates whether a removed option should warn or error.
- Unstable
Options πTarget Modifiers
ConstantsΒ§
- CG_
OPTIONS π - POLONIUS_
HELP π - Z_
OPTIONS π
FunctionsΒ§
- build_
options π - parse_
align π - parse_
annotate_ πmoves - parse_
assert_ πincr_ state - parse_
autodiff π - parse_
bool π - Use this for any boolean option that has a static default.
- parse_
branch_ πprotection - parse_
cargo_ πsrc_ file_ hash - parse_
cfguard π - parse_
cfprotection π - parse_
code_ πmodel - parse_
codegen_ πretag_ options - parse_
collapse_ πmacro_ debuginfo - parse_
comma_ πlist - parse_
coverage_ πoptions - parse_
debuginfo π - parse_
debuginfo_ πcompression - parse_
dump_ πmono_ stats - parse_
fmt_ πdebug - parse_
frame_ πpointer - parse_
function_ πreturn - parse_
ignore π - Ignore the value. Used for removed options where we donβt actually want to store anything in the session.
- parse_
inlining_ πthreshold - parse_
instrument_ πcoverage - parse_
instrument_ πmcount - parse_
instrument_ πxray - parse_
link_ πself_ contained - parse_
linker_ πfeatures - Parse a comma-separated list of enabled and disabled linker features.
- parse_
linker_ πflavor - parse_
linker_ πplugin_ lto - parse_
list π - parse_
list_ πwith_ polarity - parse_
llvm_ πmodule_ flag - parse_
location_ πdetail - parse_
lto π - parse_
merge_ πfunctions - parse_
mir_ πinclude_ spans - parse_
mir_ πstrip_ debuginfo - parse_
next_ πsolver_ config - parse_
no_ πvalue - This is for boolean options that donβt take a value, and are true simply by existing on the command-line.
- parse_
number π - Use this for any numeric option that has a static default.
- parse_
offload π - parse_
on_ πbroken_ pipe - parse_
opt_ πbool - Use this for any boolean option that lacks a static default. (The actions taken when such an option is not specified will depend on other factors, such as other options, or target options.)
- parse_
opt_ πcomma_ list - parse_
opt_ πnumber - Use this for any numeric option that lacks a static default.
- parse_
opt_ πpanic_ strategy - parse_
opt_ πpathbuf - parse_
opt_ πstring - Use this for any string option that lacks a static default.
- parse_
opt_ πsymbol_ visibility - parse_
panic_ πstrategy - parse_
passes π - parse_
patchable_ πfunction_ entry - parse_
pointer_ πauthentication_ list_ with_ polarity - parse_
polonius π - Parses whether polonius is enabled, and if so, which version.
- parse_
proc_ πmacro_ execution_ strategy - parse_
relocation_ πmodel - parse_
relro_ πlevel - parse_
rust_ πversion - parse_
sanitizer_ πmemory_ track_ origins - parse_
sanitizers π - parse_
split_ πdebuginfo - parse_
split_ πdwarf_ kind - parse_
src_ πfile_ hash - parse_
stack_ πprotector - parse_
string π - Use this for any string option that has a static default.
- parse_
string_ πpush - parse_
strip π - parse_
switch_ πwith_ opt_ path - parse_
symbol_ πmangling_ version - parse_
target_ πfeature - parse_
terminal_ πurl - parse_
time_ πpasses_ format - parse_
tls_ πmodel - parse_
treat_ πerr_ as_ bug - parse_
unpretty π - parse_
wasi_ πexec_ model - parse_
wasm_ πc_ abi - tmod_
push_ πimpl
Type AliasesΒ§
- Option
Descrs π - Option
Setter π