Trait wasm_run::BuildArgs[][src]

pub trait BuildArgs: Downcast {
    fn build_path(&self) -> &PathBuf;
fn profiling(&self) -> bool; fn default_build_path(&self) -> &PathBuf { ... }
fn target_path(&self) -> &PathBuf { ... }
fn metadata(&self) -> &Metadata { ... }
fn frontend_package(&self) -> &Package { ... }
fn backend_package(&self) -> Option<&Package> { ... }
fn run(self) -> Result<PathBuf>
    where
        Self: Sized + 'static
, { ... } }
Expand description

A trait that allows overriding the build command.

Required methods

Build directory output.

Create a profiling build. Enable optimizations and debug info.

Provided methods

Default path for the build/public directory.

Path to the target directory.

Metadata of the project.

Package metadata.

Backend frontend_package metadata.

Run the build command.

Implementations

Returns true if the trait object wraps an object of type __T.

Returns a boxed object from a boxed trait object if the underlying object is of type __T. Returns the original boxed trait if it isn’t.

Returns an Rc-ed object from an Rc-ed trait object if the underlying object is of type __T. Returns the original Rc-ed trait if it isn’t.

Returns a reference to the object within the trait object if it is of type __T, or None if it isn’t.

Returns a mutable reference to the object within the trait object if it is of type __T, or None if it isn’t.

Implementors