| Crates.io | workspacer-metadata |
| lib.rs | workspacer-metadata |
| version | 0.1.3 |
| created_at | 2025-04-01 08:10:32.256689+00 |
| updated_at | 2025-07-13 01:05:49.392474+00 |
| description | A Rust crate for retrieving Cargo workspace metadata asynchronously, using Tokio for task management and async_trait for non-blocking trait-based operations. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1614537 |
| size | 149,328 |
workspacer-metadata is a Rust crate designed to facilitate seamless retrieval of Cargo package metadata in an asynchronous context. Leveraging Rust's async_trait and Tokio's asynchronous task-parallelism framework, this crate is ideal for systems requiring non-blocking operations in Rust workspaces.
Workspace abstraction.use workspacer_metadata::GetCargoMetadata;
// Define your workspace with proper path and handle implementations.
let my_workspace = Workspace::new().expect("Workspace creation failed");
// Fetch metadata asynchronously
let metadata = my_workspace.get_cargo_metadata().await.expect("Failed to get metadata");
This crate is built on the async and await constructs of modern Rust, relying on Tokio's task management system (spawn_blocking) to execute potentially blocking operations in a non-blocking way. It employs a trait-based API allowing any compatible workspace type to retrieve metadata seamlessly.
To utilize this crate, ensure your environment is compliant with Rust's 2024 edition standards.