rskiller 0.1.2

Find and clean Rust project build artifacts and caches
Documentation
use anyhow::Result;
use rskiller::{ProjectScanner, Cli, SortBy, Color};
use std::path::PathBuf;

/// Example: Simple project listing
#[tokio::main]
async fn main() -> Result<()> {
    let cli = Cli {
        directory: PathBuf::from("."),
        full: false,
        target: "target".to_string(),
        sort: SortBy::Size,
        gb: false,
        exclude: None,
        exclude_hidden: false,
        hide_errors: false,
        delete_all: false,
        dry_run: true,
        list_only: true,
        include_cargo_cache: false,
        color: Color::Blue,
        no_check_update: false,
    };
    
    let scanner = ProjectScanner::new(cli);
    let projects = scanner.scan().await?;
    
    println!("Found {} Rust projects:", projects.len());
    for project in &projects {
        println!(
            "  {} - {} - {:.2} MB", 
            project.name,
            project.path.display(),
            project.total_cleanable_size() as f64 / 1024.0 / 1024.0
        );
    }
    
    Ok(())
}