Expand description
Config providers.
Modules§
- ext 🔒
- remappings 🔒
- warnings 🔒
Structs§
- Backwards
Compat Toml Provider - A Provider that handles breaking changes in toml files
- Cached
Nested Config - Dapp
EnvCompat Provider - A provider that checks for DAPP_ env vars that are named differently than FOUNDRY_
- Dapp
Hardhat DirProvider - A provider that sets the
srcandoutputpath depending on their existence. - Fallback
Profile Provider - Extracts the profile from the
profilekey and sets unset values according to the fallback provider - Forced
Snake Case Data - A Provider that ensures all keys are snake case if they’re not standalone sections. See
Config::STANDALONE_SECTIONS - Ignore
Root Provider - Drops the top-level
rootkey from config file profiles. - Legacy
Labels Provider - Adapts deprecated labels from arbitrary external providers.
- Normalize
Symbolic Provider - Normalize
Tracing Provider - Optional
Strict Profile Provider - Extracts the profile from the
profilekey and using the original key as backup, merging values where necessary - Remappings
- Wrapper types over a
Vec<Remapping>that only appends unique remappings. - Remappings
Output - Remappings
Provider - A figment provider that checks if the remappings were previously set and if they’re unset looks up the fs via
- Rename
Profile Provider - Renames a profile from
fromtoto. - Toml
File Provider - A convenience provider to retrieve a toml file. This will return an error if the env var is set but the file does not exist
- Unwrap
Profile Provider - Unwraps a profile reducing the key depth
- Warnings
Provider - Generate warnings for unknown sections and deprecated keys
- Wrap
Profile Provider - Wraps a profile in another profile
Constants§
- BACKWARD_
COMPATIBLE_ KEYS - Keys kept for backward compatibility that should not trigger unknown key warnings.
- COMPILATION_
RESTRICTIONS_ KEYS - Allowed keys for CompilationRestrictions.
- DOC_
KEYS - Allowed keys for DocConfig.
Required because DocConfig uses
skip_serializing_if = "Option::is_none"on some fields (repository,commit,path), whose defaults areNoneand thus excluded from serialization. - EXTERNAL_
COMPILER_ KEYS - Allowed keys for external compiler adapter entries.
- GENERATED_
REMAPPINGS_ KEY - LABELS_
KEY - RESERVED_
KEYS - Reserved keys that should not trigger unknown key warnings.
- SETTINGS_
OVERRIDES_ KEYS - Allowed keys for SettingsOverrides.
- SYMBOLIC_
KEYS - Allowed keys for SymbolicConfig. Required because some compatibility aliases and empty length collections are skipped by default serialization, but they are still valid user-facing config keys.
- TRACING_
KEYS - Allowed keys for TracingConfig. Required because empty labels and optional trace depth are skipped by default serialization, but they are still valid user-facing config keys.
- TRACING_
LABELS_ KEY - VYPER_
KEYS - Allowed keys for VyperConfig.
Required because VyperConfig uses
skip_serializing_if = "Option::is_none"on all fields, causing the default serialization to produce an empty dict.
Traits§
Functions§
- configured_
auto_ remapping - context_
starts_ with - contextual_
overlays - expand_
scoped_ contextual_ remapping - Narrows an npm scope mapping to its installed packages so missing siblings can use the global hoisted-package fallback.
- load_
nested_ config - merge_
missing - Recursively fills missing values while preserving values from the higher-precedence source.
- merge_
tracing_ labels - normalize_
legacy_ labels - normalize_
legacy_ labels_ in_ profile - normalize_
symbolic_ section - Moves the standalone symbolic section into the selected profile before inherited configs are merged.
- normalize_
tracing_ section - Moves the standalone tracing section into the selected profile before inherited configs are merged. The deprecated standalone labels section remains in place for warning generation and is normalized again after inheritance is resolved.
- rebase_
nested_ remapping - relative_
remapping_ preserving_ context_ boundary - remapping_
name_ is_ prefix - rewrite_
legacy_ profile_ keys - Applies compiler overrides and legacy key rewrites to a profile dictionary.
- snake_
case_ profile_ keys - Converts the top-level config keys in a profile value to snake_case.