fn published_by_url(crate_name: &str, crate_version: &str) -> anyhow::Result<String> {
    let crate_name_version = &join_crate_version(crate_name, crate_version);
    let exact_version = crate::db_sled_mod::db_version_mod::read(&crate_name_version)?;
    match exact_version {
        Some(exact_version) => match exact_version.published_by_url {
            Some(published_by_url) => Ok(published_by_url),
            None => Ok("".to_string()),
        },
        None => Ok("".to_string()),
    }
}
/// check if it is already in the cache or it will GET from crates.io API and store in cache
check if it is already in the cache or it will GET from crates.io API and store in cache
check if it is already in the cache or it will GET from crates . io API and store in cache
fn published_by_url(crate_name: &str, crate_version: &str) -> anyhow::Result<String> {
    let crate_name_version = &join_crate_version(crate_name, crate_version);
    let exact_version = crate::db_sled_mod::db_version_mod::read(&crate_name_version)?;
    match exact_version {
        Some(exact_version) => match exact_version.published_by_url {
            Some(published_by_url) => Ok(published_by_url),
            None => Ok("".to_string()),
        },
        None => Ok("".to_string()),
    }
}
fn published_by_url ( crate_name : & str , crate_version : & str ) -> anyhow :: Result < String > { let crate_name_version = & join_crate_version ( crate_name , crate_version ) ; let exact_version = crate :: db_sled_mod :: db_version_mod :: read ( & crate_name_version ) ? ; match exact_version { Some ( exact_version ) => match exact_version . published_by_url { Some ( published_by_url ) => Ok ( published_by_url ) , None => Ok ( " " . to_string ( ) ) , } , None => Ok ( " " . to_string ( ) ) , } }
check if it is already in the cache or it will GET from crates.io API and store in cache
check if it is already in the cache or it will GET from crates . io API and store in cache
crate_name
&str
crate_version
&str