Trait foundry_compilers::compilers::CompilerSettings
source · pub trait CompilerSettings: Default + Serialize + DeserializeOwned + Clone + Debug + Send + Sync + 'static {
// Required methods
fn output_selection_mut(&mut self) -> &mut OutputSelection;
fn can_use_cached(&self, other: &Self) -> bool;
// Provided method
fn minimal_output_selection() -> FileOutputSelection { ... }
}
Expand description
Compilation settings including evm_version, output_selection, etc.
Required Methods§
sourcefn output_selection_mut(&mut self) -> &mut OutputSelection
fn output_selection_mut(&mut self) -> &mut OutputSelection
Returns 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
.
Provided Methods§
sourcefn minimal_output_selection() -> FileOutputSelection
fn minimal_output_selection() -> FileOutputSelection
Returns minimal output selection which can be used to optimize compilation.
Object Safety§
This trait is not object safe.