pub fn cargo_registry_src_dir_for_crate(crate_name: &str, crate_version: &str) -> anyhow::Result<std::path::PathBuf> {
    let crate_dir_name = format!("{}-{}", crate_name, crate_version);
    let crate_src_path = format!(
        "{}/registry/src/github.com-1ecc6299db9ec823/{}",
        home::cargo_home()?.to_str().unwrap(),
        crate_dir_name
    );
    let crate_root = std::path::PathBuf::from_str(&crate_src_path)?;
    // return
    Ok(crate_root)
}
/// cargo registry src directory for a crate
cargo registry src directory for a crate
cargo registry src directory for a crate
pub fn cargo_registry_src_dir_for_crate(crate_name: &str, crate_version: &str) -> anyhow::Result<std::path::PathBuf> {
    let crate_dir_name = format!("{}-{}", crate_name, crate_version);
    let crate_src_path = format!(
        "{}/registry/src/github.com-1ecc6299db9ec823/{}",
        home::cargo_home()?.to_str().unwrap(),
        crate_dir_name
    );
    let crate_root = std::path::PathBuf::from_str(&crate_src_path)?;
    // return
    Ok(crate_root)
}
pub fn cargo_registry_src_dir_for_crate ( crate_name : & str , crate_version : & str ) -> anyhow :: Result < std :: path :: PathBuf > { let crate_dir_name = format ! ( " " crate_name crate_version ) ; let crate_src_path = format ! ( " " home cargo_home ( ) to_str ( ) unwrap ( ) crate_dir_name ) ; let crate_root = std :: path :: PathBuf :: from_str ( & crate_src_path ) ? ; // return Ok ( crate_root ) }
cargo registry src directory for a crate
cargo registry src directory for a crate
crate_name
&str
crate_version
&str