| Crates.io | workspacer-crate-interface |
| lib.rs | workspacer-crate-interface |
| version | 0.1.2 |
| created_at | 2025-04-01 02:56:50.656898+00 |
| updated_at | 2025-07-13 00:06:21.569+00 |
| description | A Rust library offering traits for interacting with crate files; enables asynchronous and synchronous operations on `Cargo.toml`, source, and test files. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1614349 |
| size | 149,805 |
workspacer-crate-interface is a Rust library designed to interface with Rust crates, providing comprehensive traits and implementations for querying and manipulating a crate's file system context.
This crate offers a suite of traits that streamline interaction with various directories and files within a Rust project, such as Cargo.toml, source files, README, and test directories. The provided interfaces are especially useful for developers aiming to programmatically interact with Rust projects, whether for analysis, validation, or tooling purposes.
Cargo.toml, identifying test directories, and excluding files.Result types to handle file-related errors robustly.Integrate it into your project by implementing the desired traits for your specific use cases. It is especially suited for creating tooling around Rust projects where accessing and manipulating project metadata and directory structure is necessary.
Implement these traits and use provided implementations to lock, read, and write essential files and directories:
Cargo.toml using async locks.This crate uses Rust edition 2024.
This project is licensed under the MIT License. See the LICENSE file for more details.