Skip to main content

match_app_root_in_directory

Function match_app_root_in_directory 

Source
pub fn match_app_root_in_directory(
    base_dir: &Path,
    target_id: &str,
) -> Option<String>
Expand description

Finds an app root in one directory tree by matching app_id from the manifest.

§Parameters

§Returns

Returns Some when crate::config::match_app_root_in_directory can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::config::match_app_root_in_directory.

§Examples

ⓘ
let _result = pharos_runtime_core::config::match_app_root_in_directory(std::path::Path::new("apps"), "dev_docs");
  • crate::config for adjacent helpers that share the same runtime surface.