| Crates.io | workspacer-add-new-crate-to-workspace |
| lib.rs | workspacer-add-new-crate-to-workspace |
| version | 0.1.2 |
| created_at | 2025-04-01 05:28:14.373439+00 |
| updated_at | 2025-07-13 00:39:43.139874+00 |
| description | Automates the addition of new crates to a workspace, managing scaffolding, membership, and dependency registration with support for prefix groups. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1614433 |
| size | 217,793 |
The workspacer-add-new-crate-to-workspace Rust crate streamlines the integration of new crates within an existing workspace. It automates the creation of necessary scaffolding and facilitates consistent management of project components.
Cargo.toml, lib.rs, etc.) with placeholders for easy customization.This crate implements efficient algorithms to detect prefix patterns and manage workspace memberships in an optimized manner. Ideal for developers requiring automated workspace expansion with minimum manual intervention.
Implement the AddNewCrateToWorkspace, CreateCrateSkeleton, and AddToWorkspaceMembers traits within your workspace context. Use the add_new_crate_to_workspace function to seamlessly introduce a new crate.
async fn add_new_crate(&mut self, new_crate_name: &str) -> Result<(), WorkspaceError> {
self.add_new_crate_to_workspace(new_crate_name).await
}
This ease of integration allows projects to scale efficiently while maintaining organizational coherence.