pub struct ContractVariantSettings {Show 14 fields
pub external_view: bool,
pub panic_message: bool,
pub check_ei: Option<EIVersion>,
pub allocator: ContractAllocator,
pub stack_size: usize,
pub features: Vec<String>,
pub default_features: Option<bool>,
pub kill_legacy_callback: bool,
pub profile: ContractVariantProfile,
pub std: bool,
pub rustc_version: RustcVersion,
pub rustc_target: String,
pub opcode_version: OpcodeVersion,
pub wasm_opt_version: Option<String>,
}Expand description
Collection of flags, specified in the multicontract config.
Fields§
§external_view: boolExternal view contracts are just readers of data from another contract.
panic_message: boolPanic messages add a lot of bloat to the final bytecode, so they should only be used for debugging purposes.
check_ei: Option<EIVersion>Post-processing check of the VM hooks is based on this.
allocator: ContractAllocatorAllocator config, i.e which allocator to choose for the contract.
stack_size: usize§features: Vec<String>Features that are activated on the contract crate, from wasm.
default_features: Option<bool>Allows disabling default features in the contract crate, from wasm.
kill_legacy_callback: boolForcibly remove the original contract legacy callback.
profile: ContractVariantProfile§std: boolAllows the contract to be built with std.
rustc_version: RustcVersionExplicit rustc version when building WebAssembly.
rustc_target: StringRustc target when building WebAssembly.
opcode_version: OpcodeVersion§wasm_opt_version: Option<String>Optional check of the wasm-opt version before building.
Trait Implementations§
Source§impl Clone for ContractVariantSettings
impl Clone for ContractVariantSettings
Source§fn clone(&self) -> ContractVariantSettings
fn clone(&self) -> ContractVariantSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContractVariantSettings
impl Debug for ContractVariantSettings
Source§impl Default for ContractVariantSettings
impl Default for ContractVariantSettings
Source§impl PartialEq for ContractVariantSettings
impl PartialEq for ContractVariantSettings
impl Eq for ContractVariantSettings
impl StructuralPartialEq for ContractVariantSettings
Auto Trait Implementations§
impl Freeze for ContractVariantSettings
impl RefUnwindSafe for ContractVariantSettings
impl Send for ContractVariantSettings
impl Sync for ContractVariantSettings
impl Unpin for ContractVariantSettings
impl UnwindSafe for ContractVariantSettings
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.