Skip to main content

Module fix

Module fix 

Source
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ยง

InsertProfileError ๐Ÿ”’
The error emitted when failing to insert into a profile.
TomlFile ๐Ÿ”’
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_CONFIG or root/foundry.toml.