# Function cargo::core::workspace::find_workspace_root_with_loader

source ·

    fn find_workspace_root_with_loader(
        manifest_path: &Path,
        gctx: &GlobalContext,
        loader: impl FnMut(&Path) -> CargoResult<Option<PathBuf>>,
    ) -> CargoResult<Option<PathBuf>>

Expand description

Finds the path of the root of the workspace.

This uses a callback to determine if the given path tells us what the workspace root is.