pub struct BuildEngine { /* private fields */ }Expand description
Build engine
Implementations§
Source§impl BuildEngine
impl BuildEngine
Sourcepub fn new(config: BuildConfig) -> Self
pub fn new(config: BuildConfig) -> Self
Create a new build engine
Sourcepub async fn build(
&self,
manifest: &Manifest,
target: &str,
) -> CadiResult<BuildResult>
pub async fn build( &self, manifest: &Manifest, target: &str, ) -> CadiResult<BuildResult>
Build a manifest for a given target
Sourcepub fn get_chunk_path(&self, chunk_id: &str) -> Option<PathBuf>
pub fn get_chunk_path(&self, chunk_id: &str) -> Option<PathBuf>
Get the path to a cached chunk
Sourcepub fn cache_stats(&self) -> CadiResult<CacheStats>
pub fn cache_stats(&self) -> CadiResult<CacheStats>
Get cache statistics
Auto Trait Implementations§
impl Freeze for BuildEngine
impl RefUnwindSafe for BuildEngine
impl Send for BuildEngine
impl Sync for BuildEngine
impl Unpin for BuildEngine
impl UnwindSafe for BuildEngine
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