| Crates.io | workspacer-crate-mock |
| lib.rs | workspacer-crate-mock |
| version | 0.1.2 |
| created_at | 2025-04-01 06:03:47.431296+00 |
| updated_at | 2025-07-13 00:47:04.58921+00 |
| description | Simulate Rust crate structures and behaviors without filesystem interference, via reproducible mock interfaces. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1614450 |
| size | 171,544 |
workspacer-crate-mock is a Rust library providing a simulation framework for managing and interacting with a Rust crate's structure without engaging the actual filesystem. Designed for developers aiming to reliably test and simulate crate behaviors, this crate affords precision in simulating a crate's layout --- such as src/main.rs, README.md, and other pertinent files --- via a mock handle mechanism.
CrateHandleInterface<P> allowing for flexible mock behaviors.MockCargoToml behavior.Builder, MutGetters, and Getters paradigms for efficient interaction and data handling.AsyncMutex for concurrent access and mutation of MockCargoToml instances.Below is a basic example of how to instantiate a fully valid mock crate:
use workspacer_crate_mock::MockCrateHandle;
fn main() {
let mock_crate = MockCrateHandle::fully_valid_config();
// Engage your testing activities here
}
We welcome contributions! Please ensure any pull requests adhere to the coding standards outlined in CONTRIBUTING.md. For issues or further discussions, refer to our GitHub repository.
Explore limitless possibilities of crate manipulation without the overhead of filesystem operations.