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§

source

fn output_selection_mut(&mut self) -> &mut OutputSelection

Returns mutable reference to configured OutputSelection.

source

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§

source

fn minimal_output_selection() -> FileOutputSelection

Returns minimal output selection which can be used to optimize compilation.

Object Safety§

This trait is not object safe.

Implementors§