| Crates.io | workspacer-docs |
| lib.rs | workspacer-docs |
| version | 0.1.2 |
| created_at | 2025-04-01 13:55:50.649381+00 |
| updated_at | 2025-07-13 01:10:37.030576+00 |
| description | Provides an async interface to run `cargo doc` within Cargo workspaces, facilitating Rust documentation generation. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1614899 |
| size | 153,153 |
workspacer-docs is a Rust crate providing an asynchronous interface to generate documentation for Rust workspaces using cargo doc. It is designed for seamless integration into workflows requiring programmatic documentation generation and error handling. This crate leverages the async_trait library to support asynchronous operations, ideal for modern, non-blocking Rust applications.
cargo doc process.To use workspacer-docs, implement the GenerateDocs trait on your workspace structure. The trait requires defining one method, generate_docs, which will invoke cargo doc in the context of your workspace directory.
use async_trait::async_trait;
#[async_trait]
impl GenerateDocs for MyWorkspaceType {
type Error = MyErrorType;
async fn generate_docs(&self) -> Result<(), Self::Error> {
// Your logic to generate docs
}
}
This project is licensed under MIT License.