Skip to main content

Module config

Module config 

Source

Structs§

FoundryConfig
Project-level configuration extracted from foundry.toml.
LintConfig
Lint-related configuration extracted from foundry.toml.

Functions§

find_foundry_toml
Walk up from start to find the nearest foundry.toml, stopping at the git repository root (consistent with foundry’s find_project_root).
load_foundry_config
Load project configuration from the nearest foundry.toml.
load_foundry_config_from_toml
Load project configuration from a known foundry.toml path.
load_lint_config
Load the lint configuration from the nearest foundry.toml relative to file_path. Returns LintConfig::default() when no config is found or the relevant sections are absent.
load_lint_config_from_toml
Load lint config from a known foundry.toml path (used when reloading after a file-watch notification).