Skip to main content

resolve_website_root

Function resolve_website_root 

Source
pub fn resolve_website_root(repo_root: &Path) -> Option<PathBuf>
Expand description

Resolves the website root below a trusted repository root.

§Parameters

§Returns

Returns Some when crate::binaries::resolve_website_root 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::binaries::resolve_website_root.

§Examples

ⓘ
let _result = pharos_native::binaries::resolve_website_root(std::path::Path::new("."));
  • crate::binaries for adjacent helpers that share the same runtime surface.