pub struct CompilerInput {
pub(crate) evm_version: Option<String>,
pub(crate) sources: Vec<String>,
pub(crate) files: HashMap<String, String>,
pub(crate) construct_args: Option<Vec<String>>,
pub(crate) alternative_main: Option<String>,
pub(crate) alternative_constructor: Option<String>,
}Expand description
Input configuration for the Huff compiler
Fields§
§evm_version: Option<String>§sources: Vec<String>§files: HashMap<String, String>§construct_args: Option<Vec<String>>§alternative_main: Option<String>§alternative_constructor: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CompilerInput
impl<'de> Deserialize<'de> for CompilerInput
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
Source§impl From<CompilerInput> for JsValuewhere
CompilerInput: Serialize,
impl From<CompilerInput> for JsValuewhere
CompilerInput: Serialize,
Source§fn from(value: CompilerInput) -> Self
fn from(value: CompilerInput) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CompilerInputwhere
Self: DeserializeOwned,
impl FromWasmAbi for CompilerInputwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &CompilerInputwhere
CompilerInput: Serialize,
impl IntoWasmAbi for &CompilerInputwhere
CompilerInput: Serialize,
Source§impl IntoWasmAbi for CompilerInputwhere
CompilerInput: Serialize,
impl IntoWasmAbi for CompilerInputwhere
CompilerInput: Serialize,
Source§impl OptionFromWasmAbi for CompilerInputwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for CompilerInputwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for CompilerInputwhere
CompilerInput: Serialize,
impl OptionIntoWasmAbi for CompilerInputwhere
CompilerInput: Serialize,
Source§impl RefFromWasmAbi for CompilerInputwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for CompilerInputwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<CompilerInput>
type Anchor = SelfOwner<CompilerInput>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for CompilerInput
impl Serialize for CompilerInput
Source§impl Tsify for CompilerInput
impl Tsify for CompilerInput
const DECL: &'static str = "/**\n * Input configuration for the Huff compiler\n */\nexport interface CompilerInput {\n evm_version: string | undefined;\n sources: string[];\n files: Map<string, string>;\n construct_args: string[] | undefined;\n alternative_main: string | undefined;\n alternative_constructor: string | undefined;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for CompilerInputwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for CompilerInputwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for CompilerInputwhere
CompilerInput: Serialize,
impl VectorIntoWasmAbi for CompilerInputwhere
CompilerInput: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for CompilerInput
impl WasmDescribe for CompilerInput
Source§impl WasmDescribeVector for CompilerInput
impl WasmDescribeVector for CompilerInput
Auto Trait Implementations§
impl Freeze for CompilerInput
impl RefUnwindSafe for CompilerInput
impl Send for CompilerInput
impl Sync for CompilerInput
impl Unpin for CompilerInput
impl UnsafeUnpin for CompilerInput
impl UnwindSafe for CompilerInput
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.Source§impl<S, T> Upcast<T> for S
impl<S, T> Upcast<T> for S
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 168 bytes