Skip to main content

Crate vs_config

Crate vs_config 

Source
Expand description

Home, config, and version resolution for vs.

Structs§

AppConfig
Global configuration file for vs.
CacheConfig
Cache configuration written to config.yaml.
HomeLayout
The active home directory plus migration candidates.
LegacyVersionFileConfig
Legacy version file configuration written to config.yaml.
ProxyConfig
Proxy configuration written to config.yaml.
RegistryConfig
Registry configuration written to config.yaml.
ResolvedToolVersion
Source metadata for a resolved tool version.
StorageConfig
Storage configuration written to config.yaml.
ToolVersions
Tool versions written in TOML configuration files.

Enums§

ConfigError
Errors returned by configuration services.
Scope
Resolution scope for a tool version.

Functions§

app_config_to_value
Converts an application config to a YAML value for debugging.
find_legacy_file
Finds the nearest legacy file in the directory hierarchy.
find_project_file
Finds the nearest project config file, walking upwards from the current directory.
flatten_app_config
Lists user-visible configuration values as strings.
global_tools_file
Returns the canonical global tools file path.
parse_legacy_versions
Parses the contents of a supported legacy file.
preferred_project_file
Returns the preferred project config path for writes.
read_app_config
Reads config.yaml from the active home.
read_legacy_versions
Reads a legacy version file into the shared tool model.
read_tool_versions
Reads a TOML tool file.
resolve_home
Resolves the active vs home directory from the process environment.
resolve_home_with
Resolves the active vs home directory using explicit inputs.
resolve_tool_version
Resolves a tool version using Project > Session > Global > System precedence.
session_tools_file
Returns the canonical session tools file path.
set_app_config_value
Sets a top-level config value by key.
supported_legacy_files
Supported legacy file names.
unset_app_config_value
Unsets a top-level config value by key.
write_app_config
Writes config.yaml to the active home.
write_tool_versions
Writes a TOML tool file.