pub struct Settings {
pub evm_version: Option<EVMVersion>,
pub libraries: Option<BTreeMap<String, BTreeMap<String, String>>>,
pub remappings: Option<BTreeSet<String>>,
pub output_selection: Option<Selection>,
pub via_ir: Option<bool>,
pub optimizer: Optimizer,
pub metadata: Option<Metadata>,
pub polkavm: Option<PolkaVM>,
}
Expand description
The solc --standard-json
input settings.
Fields§
§evm_version: Option<EVMVersion>
The target EVM version.
libraries: Option<BTreeMap<String, BTreeMap<String, String>>>
The linker library addresses.
remappings: Option<BTreeSet<String>>
The sorted list of remappings.
output_selection: Option<Selection>
The output selection filters.
via_ir: Option<bool>
Whether to compile via IR. Only for testing with solc >=0.8.13.
optimizer: Optimizer
The optimizer settings.
metadata: Option<Metadata>
The metadata settings.
polkavm: Option<PolkaVM>
The resolc custom PolkaVM settings.
Implementations§
Source§impl Settings
impl Settings
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