Workspacer-Cleanup
workspacer-cleanup is a Rust crate designed to streamline development workflows by efficiently purging unnecessary files and directories within a workspace. Employing asynchronous operations, this crate helps maintain a tidy project environment, crucial for optimal performance during compilation cycles and versioning tasks.
Features
- Asynchronous Execution: Implements Rust's async paradigms to ensure non-blocking file and directory operations.
- Targeted Cleanup: Specifically focuses on auto-generated files and directories such as
target/andCargo.lockto prevent clutter. - Error Handling: Robust error handling with custom
WorkspaceErrorenumerations for both file and directory removal operations. - Composable Interface: Easy to integrate with existing Rust workspaces through the implementation of the
CleanupWorkspacetrait.
Usage
Incorporate workspacer-cleanup into your project by implementing the CleanupWorkspace trait within your workspace structure. Utilize the cleanup_workspace method to perform the cleanup operation asynchronously.
// Example implementation
Installation
Add the following to your Cargo.toml:
[]
= "0.1.0"
Compatibility
This crate requires Rust edition 2024 and is intended for systems where asynchronous file operations are optimal.
Contributing
Contributions are welcome! Please adhere to the standard Rust coding practices, and ensure all changes are covered with appropriate tests.