Skip to main content

resolve_native_project

Function resolve_native_project 

Source
pub fn resolve_native_project(
    base: &Path,
    native_path: Option<&PathBuf>,
) -> PathBuf
Expand description

Resolves the native client project directory.

The directory inside this repository is used unless the caller names another one, so an external layout can be built without changing the repository. The directory is checked when the build runs rather than here, so a plan can be printed for a layout that is not present yet.

§Arguments

  • &Path - The directory this build runs in.
  • Option<&PathBuf> - The --native-path override, when one was given.

§Returns

  • PathBuf - The native client project directory.