pub struct Settings {
pub evm_version: Option<EVMVersion>,
pub libraries: Libraries,
pub remappings: BTreeSet<String>,
pub output_selection: Selection,
pub via_ir: Option<bool>,
pub optimizer: Optimizer,
pub metadata: Metadata,
pub polkavm: PolkaVM,
pub detect_missing_libraries: bool,
}
Expand description
The solc --standard-json
input settings.
Fields§
§evm_version: Option<EVMVersion>
The target EVM version.
libraries: Libraries
The linker library addresses.
remappings: BTreeSet<String>
The sorted list of remappings.
output_selection: 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: Metadata
The metadata settings.
polkavm: PolkaVM
The resolc custom PolkaVM settings.
detect_missing_libraries: bool
Whether to enable the missing libraries detection mode. Deprecated in favor of post-compile-time linking.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more