validate_dir

Function validate_dir 

Source
pub fn validate_dir(path: &Path) -> Result<()>
Expand description

Checks the following cases for an early error generation:

  1. Target dir doesn’t contain a Forc.toml
  2. Target manifest file doesn’t contain a version
  3. Target project’s dependencies are not all version based (git or path based dep detection)