crate-activity 0.4.0

This crate provides a way to monitor the usage for a set of crates.io crates
Documentation
1
2
3
4
5
6
7
8
9
crate::ix!();

pub async fn configure_directory() -> Result<PathBuf, CrateActivityError> {
    let config_dir = dirs::home_dir()
        .map(|p| p.join(".published-crates"))
        .unwrap_or_else(|| PathBuf::from(".published-crates"));
    ensure_config_structure(&config_dir).await?;
    Ok(config_dir)
}