Skip to main content

Module parse

Module parse 

Source

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/DebuggingOptions fields 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Β§

CodegenOptions πŸ”’
CollectedOptions πŸ”’
ExtendedTargetModifierInfo πŸ”’
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)’).
OptionDesc πŸ”’
Options πŸ”’
The top-level command-line options struct.
TargetModifier πŸ”’
A recorded -Zopt_name=opt_value (or -Copt_name=opt_value) which alter the ABI or effectiveness of exploit mitigations.
UnstableOptions πŸ”’

EnumsΒ§

CodegenOptionsTargetModifiers πŸ”’
OptionsTargetModifiers πŸ”’
RemovedOption πŸ”’
Indicates whether a removed option should warn or error.
UnstableOptionsTargetModifiers πŸ”’

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Β§

OptionDescrs πŸ”’
OptionSetter πŸ”’