[][src]Struct solana_libra_compiler::Compiler

pub struct Compiler {
    pub address: AccountAddress,
    pub skip_stdlib_deps: bool,
    pub stdlib_address: AccountAddress,
    pub extra_deps: Vec<VerifiedModule>,
    // some fields omitted
}

An API for the compiler. Supports setting custom options.

Fields

address: AccountAddress

The address used as the sender for the compiler.

skip_stdlib_deps: bool

Skip stdlib dependencies if true.

stdlib_address: AccountAddress

The address to use for stdlib.

extra_deps: Vec<VerifiedModule>

Extra dependencies to compile with.

Methods

impl Compiler[src]

pub fn into_compiled_program(self, code: &str) -> Result<CompiledProgram>[src]

Compiles into a CompiledProgram where the bytecode hasn't been serialized.

pub fn into_compiled_program_and_deps(
    self,
    code: &str
) -> Result<(CompiledProgram, Vec<VerifiedModule>)>
[src]

Compiles into a CompiledProgram and also returns the dependencies.

pub fn into_script(self, code: &str) -> Result<CompiledScript>[src]

Compiles into a CompiledScript.

pub fn into_script_blob(self, code: &str) -> Result<Vec<u8>>[src]

Compiles the script into a serialized form.

pub fn into_compiled_module(self, code: &str) -> Result<CompiledModule>[src]

Compiles the module.

pub fn into_module_blob(self, code: &str) -> Result<Vec<u8>>[src]

Compiles the module into a serialized form.

pub fn into_program(
    self,
    code: &str,
    args: Vec<TransactionArgument>
) -> Result<Script>
[src]

Compiles the code and arguments into a Script -- the bytecode is serialized.

Trait Implementations

impl Clone for Compiler[src]

impl Debug for Compiler[src]

impl Default for Compiler[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,