Skip to main content

safe_feature_template_path

Function safe_feature_template_path 

Source
pub fn safe_feature_template_path(
    root: &Path,
    relative: &str,
) -> Option<PathBuf>
Expand description

Resolves an app-owned feature template without permitting boundary escape.

§Parameters

§Returns

Returns Some when crate::features::safe_feature_template_path can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_runtime_compiler::features::safe_feature_template_path(std::path::Path::new("."), todo!());
  • crate::features for adjacent helpers that share the same runtime surface.