| Crates.io | workspacer-readme-writer |
| lib.rs | workspacer-readme-writer |
| version | 0.1.4 |
| created_at | 2025-04-01 20:44:59.220003+00 |
| updated_at | 2025-07-13 04:00:58.496906+00 |
| description | Automates the generation of README.md and Cargo.toml fields using AI to enhance documentation quality in Rust projects. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1615521 |
| size | 187,933 |
workspacer-readme-writer is a Rust crate designed to facilitate the generation and updating of README.md and Cargo.toml files within crate or workspace environments. This is achieved by leveraging AI-driven expansions, making it suitable for projects that require automation in documentation management.
README.md content tailored for intelligent and discerning audiences.Cargo.toml based on AI outputs.ApplyAiReadmeOutput for README and Cargo.toml modifications, ensuring extensibility.The crate employs a variety of async traits and mechanisms:
ReadmeWritingCrateHandle<P>: Interface for crate handle operations.ApplyAiReadmeOutput: Asynchronous methods for updating README and Cargo.toml.AiReadmeWriterRequest: Holds necessary request information and metadata, enabling precise expansions and updates.AiReadmeWriter: Central coordinator for generating and applying AI-driven README and Cargo.toml modifications.Integrate workspacer-readme-writer into your project by including it in your dependencies within Cargo.toml. Create an AiReadmeWriter instance and invoke the execute_ai_readme_writer_requests method with appropriately crafted requests to automate your documentation workflow.
To add workspacer-readme-writer to your project, update your Cargo.toml as follows:
[dependencies]
workspacer-readme-writer = "0.1.0"
use workspacer_readme_writer::{AiReadmeWriter, AiReadmeWriterRequest};
use std::sync::Arc;
use async_std::path::PathBuf;
#[tokio::main]
async fn main() {
let writer = AiReadmeWriter::default().await.unwrap();
let requests = vec![
AiReadmeWriterRequest::<PathBuf>::async_try_from(/* crate_handle */).await.unwrap()
];
writer.execute_ai_readme_writer_requests(&requests).await.unwrap();
}
Contributions to enhance this crate are welcome. Please follow Rust's standards for code formatting and ensure thorough testing.