resolve_charon_path

Function resolve_charon_path 

Source
pub fn resolve_charon_path(
    cli_charon_path: &Option<PathBuf>,
) -> Result<PathBuf, Box<dyn Error>>
Expand description

Resolves the path to the Charon Binary.

  • If the user has provided a path via the CLI, use that.
  • Otherwise, use the path speficied in the environment variable CHARON_PATH.
  • If neither of the above are provided, use the path specified in the config.toml file.
  • If none of the above are provided, use the default path, ./charon