Skip to main content

Module config

Module config 

Source
Expand description

Config used by the language server.

Of particular interest is the feature_flags hash map: while other fields configure the server itself, feature flags are passed into analysis, and tweak things like automatic insertion of () in completions.

Modulesยง

client ๐Ÿ”’
false_or_never ๐Ÿ”’
global ๐Ÿ”’
local ๐Ÿ”’
patch_old_style ๐Ÿ”’
See patch_json_for_outdated_configs
single_or_array ๐Ÿ”’
true_or_always ๐Ÿ”’
workspace ๐Ÿ”’

Macrosยง

_config_data ๐Ÿ”’
_default_str ๐Ÿ”’
_default_val ๐Ÿ”’
_impl_for_config_data ๐Ÿ”’
create_bool_or_string_serde ๐Ÿ”’

Structsยง

CallInfoConfig
CheckOnSaveTargets ๐Ÿ”’
ClientCommandsConfig
ClientConfigInput ๐Ÿ”’
All fields Option<T>, None representing fields not set in a particular JSON/TOML blob.
ClientDefaultConfigData ๐Ÿ”’
Default config values for this grouping.
ClientInfo ๐Ÿ”’
Config
The configuration of this rust-analyzer instance.
ConfigChange
ConfigErrors
DefaultConfigData ๐Ÿ”’
DiscoverWorkspaceConfig
DocumentSymbolConfig
Configuration for document symbol search requests.
FilesConfig
FullConfigInput ๐Ÿ”’
All of the config levels, all fields Option<T>, to describe fields that are actually set by some rust-analyzer.toml file or JSON blob. An empty rust-analyzer.toml corresponds to all fields being None.
GlobalConfigInput ๐Ÿ”’
All fields Option<T>, None representing fields not set in a particular JSON/TOML blob.
GlobalDefaultConfigData ๐Ÿ”’
Default config values for this grouping.
GlobalWorkspaceLocalConfigInput ๐Ÿ”’
All of the config levels, all fields Option<T>, to describe fields that are actually set by some rust-analyzer.toml file or JSON blob. An empty rust-analyzer.toml corresponds to all fields being None.
HoverActionsConfig
LensConfig
LocalConfigInput ๐Ÿ”’
All fields Option<T>, None representing fields not set in a particular JSON/TOML blob.
LocalDefaultConfigData ๐Ÿ”’
Default config values for this grouping.
NotificationsConfig
RunnablesConfig
Configuration for runnable items, such as main function or tests.
SnippetDef ๐Ÿ”’
WorkspaceConfigInput ๐Ÿ”’
All fields Option<T>, None representing fields not set in a particular JSON/TOML blob.
WorkspaceDefaultConfigData ๐Ÿ”’
Default config values for this grouping.
WorkspaceLocalConfigInput ๐Ÿ”’
Workspace and local config levels, all fields Option<T>, to describe fields that are actually set by some rust-analyzer.toml file or JSON blob. An empty rust-analyzer.toml corresponds to all fields being None.
WorkspaceSymbolConfig
Configuration for workspace symbol search requests.

Enumsยง

AdjustmentHintsDef ๐Ÿ”’
AdjustmentHintsModeDef ๐Ÿ”’
AnnotationLocation
AutoImportExclusion
AutoImportExclusionType
CallableCompletionDef ๐Ÿ”’
CargoFeaturesDef ๐Ÿ”’
ClosureReturnTypeHintsDef ๐Ÿ”’
ClosureStyle ๐Ÿ”’
ConfigErrorInner
DiscriminantHintsDef ๐Ÿ”’
ExprFillDefaultDef ๐Ÿ”’
FilesWatcher
FilesWatcherDef ๐Ÿ”’
ImportGranularityDef ๐Ÿ”’
ImportPrefixDef ๐Ÿ”’
InvocationStrategy ๐Ÿ”’
LifetimeElisionDef ๐Ÿ”’
LinkedProject
ManifestOrProjectJson ๐Ÿ”’
MaxSubstitutionLength
MemoryLayoutHoverRenderKindDef ๐Ÿ”’
NumProcesses
NumThreads
RatomlFile ๐Ÿ”’
RatomlFileKind
ReborrowHintsDef ๐Ÿ”’
RustfmtConfig
SignatureDetail ๐Ÿ”’
SnippetScopeDef ๐Ÿ”’
TargetDirectory
TypeHintsLocation ๐Ÿ”’
WorkspaceSymbolSearchKindDef ๐Ÿ”’
WorkspaceSymbolSearchScopeDef ๐Ÿ”’

Functionsยง

deserialize_abs_pathbuf ๐Ÿ”’
doc_comment_to_string ๐Ÿ”’
field_props ๐Ÿ”’
get_field_json ๐Ÿ”’
get_field_toml ๐Ÿ”’
schema ๐Ÿ”’
serialize_abs_pathbuf ๐Ÿ”’
to_title_case ๐Ÿ”’
Translate a field name to a title case string suitable for use in the category names on the vscode settings page.
toml_pointer ๐Ÿ”’
validate_toml_table ๐Ÿ”’

Type Aliasesยง

FxIndexMap ๐Ÿ”’
SchemaField ๐Ÿ”’