Skip to main content

lake_target_declared

Function lake_target_declared 

Source
pub fn lake_target_declared(
    project_root: &Path,
    target_name: &str,
) -> Result<bool, LeanModuleDiscoveryDiagnostic>
Expand description

Return whether a Lake lean_lib target is declared in a project.

ยงErrors

Returns discovery diagnostics if the Lake root or lakefile cannot be read.