crate-cli 10.8.0

A command-line tool for managing Cargo package lifecycles: version bump, workspace dependency sync, members-ordered publish and code formatting.
Documentation

crate-cli

Unified Cargo Workspace CLI & VS Code Prettier-Aligned Formatter

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs · Agent Engineering Rules


Overview

Command-line tool and embeddable library managing Cargo workspace lifecycles (crate bump, crate sync, crate publish, crate fmt) plus pure-Rust VS Code Prettier-aligned multi-format formatting.

This package is part of the ctares unified Rust 2024 workspace and follows the repository's strict module purity, formatting, and dependency-ordered release standards.

Responsibilities & Module Layout

  • fmt::markdown / fmt::yaml / fmt::json / fmt::toml / fmt::text — Pure-Rust formatters aligned with VS Code esbenp.prettier-vscode (tabWidth: 2, singleQuote: true, printWidth: 80, proseWrap: "preserve", LF endings) and Taplo TOML
  • fmt::driver — Public library entry points (execute_unified_fmt, format_workspace_text_files, format_text_by_path) consumed by euv-cli and hyperlane-cli
  • bump / sync / publish — Workspace SemVer bumping, member dependency synchronization, and dependency-ordered crates.io publishing

Installation & Quick Start

cargo install crate-cli
# Format all supported text files (.md, .yml/.yaml, .json/.jsonc, .toml) + Rust derives + rustfmt
crate fmt
crate fmt --check

# Synchronize workspace member versions and publish in dependency order
crate sync
crate publish

Verification

Run crate-scoped formatting, lint, and test checks from the workspace root:

cargo run -p crate-cli -- fmt --check
cargo clippy -p crate-cli --all-features --all-targets -- -D warnings
cargo test -p crate-cli --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.