Expand description
Helpers to automatically fix configuration warnings.
Re-exportsยง
use crate::Config;๐use crate::Warning;๐use crate::providers::TomlFileProvider;๐use std::fs;๐use std::io;๐use std::ops::Deref;๐use std::ops::DerefMut;๐use std::path::Path;๐use std::path::PathBuf;๐
Structsยง
- Insert
Profile ๐Error - The error emitted when failing to insert into a profile.
- Toml
File ๐ - A convenience wrapper around a TOML document and the path it was read from
Functionsยง
- fix_
toml_ ๐non_ strict_ profiles - Making sure any implicit profile
[name]becomes[profile.name]for the given file and returns the implicit profiles and the result of editing them - fix_
tomls - Fix foundry.toml files. Making sure any implicit profile
[name]becomes[profile.name]. Return any warnings - fix_
tomls_ with_ root - Fixes the global TOML and the local TOML selected by
FOUNDRY_CONFIGorroot/foundry.toml.