Trait buildsrs_builder::Strategy 
source · pub trait Strategy: Send + Sync {
    // Required methods
    fn builder_from_path<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 Path
    ) -> Pin<Box<dyn Future<Output = Result<DynBuilder>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn builder_from_crate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        krate: &'life1 Path
    ) -> Pin<Box<dyn Future<Output = Result<DynBuilder>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn builder_from_url<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        url: &'life1 Url,
        checksum: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<DynBuilder>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}Expand description
Represents a strategy for building artifacts.
A strategy is able to create a builder instance for a given crate. For example, building binaries in Docker might be one strategy, while building binaries in a QEMU VM might be another one.
Required Methods§
sourcefn builder_from_path<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 Path
) -> Pin<Box<dyn Future<Output = Result<DynBuilder>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
 
fn builder_from_path<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 Path
) -> Pin<Box<dyn Future<Output = Result<DynBuilder>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
Create a builder instance from an extraced crate at the given path.
sourcefn builder_from_crate<'life0, 'life1, 'async_trait>(
    &'life0 self,
    krate: &'life1 Path
) -> Pin<Box<dyn Future<Output = Result<DynBuilder>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
 
fn builder_from_crate<'life0, 'life1, 'async_trait>(
    &'life0 self,
    krate: &'life1 Path
) -> Pin<Box<dyn Future<Output = Result<DynBuilder>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
Create a builder instance from a .crate file.
sourcefn builder_from_url<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    url: &'life1 Url,
    checksum: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<DynBuilder>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
 
fn builder_from_url<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    url: &'life1 Url,
    checksum: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<DynBuilder>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
Create a builder instance from a crate by download URL.