workspacer-crate

Crates.ioworkspacer-crate
lib.rsworkspacer-crate
version0.5.2
created_at2025-02-09 03:44:12.197205+00
updated_at2025-07-13 00:21:07.760206+00
descriptionEfficient management of Rust workspaces with asynchronous operations, offering functionalities for crate initialization, integrity validation, version management, and serialization.
homepage
repositoryhttps://github.com/klebs6/klebs-general
max_upload_size
id1548633
size205,188
(klebs6)

documentation

README

workspacer-crate

workspacer-crate is a comprehensive utility for managing Rust workspaces with refined asynchronous handling and intricate management of workspace constructs. This crate is tailored for developers who require detailed control over crate initialization, integrity validation, version management, and more.

Features

  • Crate Initialization: Efficiently initialize crates within a workspace, complete with optional README, source files, and test files.

  • Asynchronous Operations: Utilize asynchronous mechanisms to manage concurrent operations, ensuring thread-safe access and modification of the Cargo.toml and associated paths.

  • Version and Integrity Management: Safeguard version consistency and workspace integrity with automated checks for required files such as Cargo.toml and source files.

  • Serialize and Deserialize Support: Offers serialization for crate handles, facilitating network transmission or persistent storage.

Usage

Incorporate workspacer-crate into your Rust project to streamline workspace management:

use workspacer_crate::CrateHandle;

async fn main() {
    // Example usage of CrateHandle
    let crate_handle = CrateHandle::new("/path/to/crate").await.unwrap();
    let version = crate_handle.version().unwrap();
    println!("Crate version: {}", version);
}

Installation

Add to your Cargo.toml:

[dependencies]
workspacer-crate = "0.5.0"

Contributions

Contributions are welcome! Please look at the issues on GitHub.

License

This project is licensed under the MIT OR Apache-2.0 licenses.

Commit count: 634

cargo fmt