Skip to main content

prepare_app_artifact

Function prepare_app_artifact 

Source
pub fn prepare_app_artifact(
    app_root: &Path,
    app_id: &str,
    build_dir_override: Option<&str>,
) -> Result<String, i32>
Expand description

Prepares one app artifact tree for runtime loading.

§Parameters

§Returns

Returns the successful value produced by crate::runtime::prepare_app_artifact or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::prepare_app_artifact cannot complete successfully.

§Examples

ⓘ
let _result = pharos_native::runtime::prepare_app_artifact(std::path::Path::new("apps/dev_docs"), todo!(), todo!());
  • crate::runtime for adjacent helpers that share the same runtime surface.