Skip to main content

find_app_root_for_target

Function find_app_root_for_target 

Source
pub fn find_app_root_for_target(
    target_id: &str,
    app_dir_hint: Option<&Path>,
    repo_root: Option<&Path>,
    binary_dir: Option<&Path>,
) -> Option<String>
Expand description

Finds an app root by checking the explicit app directory, repository root, and binary-relative app directories.

§Parameters

§Returns

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

§Examples

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