| Crates.io | workspacer-toml |
| lib.rs | workspacer-toml |
| version | 0.5.2 |
| created_at | 2025-02-09 03:39:51.326272+00 |
| updated_at | 2025-07-13 00:18:26.067603+00 |
| description | Efficiently manage and validate `Cargo.toml` files with field verification and asynchronous operations. |
| homepage | |
| repository | https://github.com/klebs6/klebs-general |
| max_upload_size | |
| id | 1548632 |
| size | 220,473 |
workspacer-toml is a Rust crate designed to manage and validate Cargo.toml files efficiently. It provides an interface to manipulate, inspect, and ensure the integrity of essential fields required for Rust package publishing such as name, version, authors, and license.
tokio for non-blocking file operations on Cargo.toml, enhancing performance in concurrent environments.version, license, authors, and repository using provided trait implementations.workspacer-toml employs serde for serialization and deserialization of TOML content, and uses toml_edit for precise document manipulation. This combination ensures robust parsing and serialization, minimizing errors during version control and dependency management.
Cargo.toml file path.Licensed under either of MIT License or Apache License, Version 2.0 at your option.
For access and contributions, visit the GitHub repository.
use workspacer_toml::CargoToml;
let cargo_toml = CargoToml::new("path/to/Cargo.toml").await.expect("Valid Cargo.toml required");
cargo_toml.validate_toml().expect("Validation failed");