| Crates.io | workspacer-analysis |
| lib.rs | workspacer-analysis |
| version | 0.1.2 |
| created_at | 2025-04-01 05:37:57.143809+00 |
| updated_at | 2025-07-13 00:42:25.174779+00 |
| description | Asynchronous Rust crate for detailed analysis of workspace file metrics, including sizes, lines of code, and file counts across crates. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1614442 |
| size | 180,182 |
workspacer-analysis is a Rust library designed for exhaustive statistical analysis of Rust workspaces. It efficiently processes large codebases, providing detailed insights into source and test files across multiple crates using asynchronous computations.
async capabilities, the library conducts analyses without blocking, enhancing performance in typical development environments.Ideal for developers and teams needing to analyze codebase metrics simultaneously across distinct crates in a Rust workspace. It aids in pinpointing inefficiencies and optimizing code organization.
use workspacer_analysis::{Analyze, CrateAnalysis, Workspace};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let workspace = Workspace::new("path/to/workspace")?;
let analysis = workspace.analyze().await?;
println!("Total file size: {} bytes", analysis.total_file_size());
Ok(())
}
Contributions are welcome! Please feel free to submit a pull request or open an issue.
This project is licensed under the MIT License.