pub struct Settings {
pub stop_after: Option<StopAfter>,
pub remappings: Option<Vec<String>>,
pub optimizer: Option<Optimizer>,
pub evm_version: Option<EvmVersion>,
pub via_ir: Option<bool>,
pub debug: Option<DebugSettings>,
pub metadata: Option<MetadataSettings>,
pub libraries: Option<BTreeMap<String, BTreeMap<String, String>>>,
pub output_selection: Option<BTreeMap<String, BTreeMap<String, Vec<String>>>>,
pub model_checker: Option<ModelCheckerSettings>,
}Expand description
Compiler settings corresponding to the top-level settings object in the
Standard JSON input.
Most fields are optional and will be omitted from serialized JSON when set to
None. Key fields:
optimizer: configure optimization (enabled,runs, anddetails).evmVersion: target EVM version.metadata: control metadata andbytecodeHashbehavior.libraries: map of{ file: { libraryName: address } }for linking.outputSelection: select which generated outputs the compiler should produce; it follows the{ "file": { "contract": [ "abi", ...] } }structure used by the Solidity compiler.
Fields§
§stop_after: Option<StopAfter>§remappings: Option<Vec<String>>§optimizer: Option<Optimizer>§evm_version: Option<EvmVersion>§via_ir: Option<bool>§debug: Option<DebugSettings>§metadata: Option<MetadataSettings>§libraries: Option<BTreeMap<String, BTreeMap<String, String>>>§output_selection: Option<BTreeMap<String, BTreeMap<String, Vec<String>>>>§model_checker: Option<ModelCheckerSettings>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more