| Crates.io | workspacer-rebuild-or-test |
| lib.rs | workspacer-rebuild-or-test |
| version | 0.1.2 |
| created_at | 2025-04-01 20:49:37.571755+00 |
| updated_at | 2025-07-13 04:03:26.977307+00 |
| description | Asynchronous Rust crate for rebuilding and testing crates and workspaces, with comprehensive logging and error handling. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1615529 |
| size | 158,409 |
workspacer-rebuild-or-test is a Rust crate designed to streamline the process of rebuilding and testing Rust projects located within crates or workspaces. This crate offers an asynchronous trait implementation, RebuildOrTest, to facilitate seamless integration with command runners, enabling automated build and test routines.
async/await to run cargo build and cargo test commands efficiently.The primary interface is the asynchronous trait RebuildOrTest:
#[async_trait]
pub trait RebuildOrTest {
type Error;
async fn rebuild_or_test(&self, runner: &dyn CommandRunner) -> Result<(), Self::Error>;
}
This trait is implemented for both individual crates (CrateHandle) and entire workspaces (Workspace).
cargo build followed by cargo test within the crate directory.To employ the workspacer-rebuild-or-test crate, integrate it with your existing toolchain or CI/CD pipeline to ensure consistent build and test verification across your Rust projects.
CommandRunner interface to drive command execution.Add the crate to your Cargo.toml:
[dependencies]
workspacer-rebuild-or-test = "0.1.0"
Contributions towards enhancing the robustness and efficiency of this crate are encouraged. Please adhere to the standard Rust community guidelines for contributions.
This project is licensed under the MIT License, permitting contributions provided with a clear notice in support of open source collaboration.