| Crates.io | workspacer-name-all-files |
| lib.rs | workspacer-name-all-files |
| version | 0.1.2 |
| created_at | 2025-04-01 15:59:51.523205+00 |
| updated_at | 2025-07-13 03:34:36.014308+00 |
| description | Recursively scans directories for Rust source files, manages file markers, and integrates with workspace environments using asynchronous Rust. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1615028 |
| size | 179,613 |
workspacer-name-all-files is a Rust crate that facilitates the management of Rust source files (.rs) within complex workspace directories. This crate provides utilities to recursively scan directories, identify .rs files, and ensure consistent file markers across the codebase.
To utilize workspacer-name-all-files, your workspace must implement the NameAllFiles trait, enabling each crate within your workspace to participate in the file naming process.
use workspacer_name_all_files::{NameAllFiles, gather_rs_files_recursively};
#[async_trait]
impl NameAllFiles for MyWorkspace {
type Error = MyWorkspaceError;
async fn name_all_files(&self) -> Result<(), Self::Error> {
// Custom implementation here
}
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let workspace = MyWorkspace::new();
workspace.name_all_files().await?;
Ok(())
}
Contributions are welcome! Please adhere to the code of conduct outlined in the repository documentation.
Distributed under the MIT License.