[][src]Struct substrate_wasm_builder_runner::WasmBuilderSelectSource

pub struct WasmBuilderSelectSource(_);

Second step of the WasmBuilder to set the source of the wasm-builder.

Methods

impl WasmBuilderSelectSource[src]

pub fn with_wasm_builder_from_path(self, path: &'static str) -> WasmBuilder[src]

Use the given path as source for wasm-builder.

The path must be relative and point to the directory that contains the Cargo.toml for wasm-builder.

pub fn with_wasm_builder_from_git(
    self,
    repo: &'static str,
    rev: &'static str
) -> WasmBuilder
[src]

Use the given repo and rev as source for wasm-builder.

pub fn with_wasm_builder_from_crates(self, version: &'static str) -> WasmBuilder[src]

Use the given version to fetch wasm-builder source from crates.io.

pub fn with_wasm_builder_from_crates_or_path(
    self,
    version: &'static str,
    path: &'static str
) -> WasmBuilder
[src]

Use the given version to fetch wasm-builder source from crates.io or use the given path as source.

The path must be relative and point to the directory that contains the Cargo.toml for wasm-builder.

pub fn with_wasm_builder_source(self, source: WasmBuilderSource) -> WasmBuilder[src]

Use the given source as source for wasm-builder.

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> From<T> for T[src]

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

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.