Trait foundry_compilers::compilers::CompilerSettings
source · pub trait CompilerSettings: Default + Serialize + DeserializeOwned + Clone + Debug + Send + Sync + 'static {
// Required methods
fn update_output_selection(
&mut self,
f: impl FnOnce(&mut OutputSelection) + Copy,
);
fn can_use_cached(&self, other: &Self) -> bool;
}
Expand description
Compilation settings including evm_version, output_selection, etc.
Required Methods§
sourcefn update_output_selection(
&mut self,
f: impl FnOnce(&mut OutputSelection) + Copy,
)
fn update_output_selection( &mut self, f: impl FnOnce(&mut OutputSelection) + Copy, )
Executes given fn with mutable reference to configured OutputSelection.
sourcefn can_use_cached(&self, other: &Self) -> bool
fn can_use_cached(&self, other: &Self) -> bool
Returns true if artifacts compiled with given other
config are compatible with this
config and if compilation can be skipped.
Ensures that all settings fields are equal except for output_selection
which is required
to be a subset of cached.output_selection
.
Object Safety§
This trait is not object safe.