Expand description
crate-cli
A command-line tool for managing Cargo package lifecycles: version bump, workspace dependency sync, members-ordered publish and code formatting.
Structs§
- Args
- Parsed command line arguments
- Logger
- Custom logger implementation for the hyperlane-cli.
- Package
- Package information in monorepo
- Publish
Result - Publish result for a single package
- Sync
Report - Result of a sync operation: which entries were rewritten.
- Version
- Parsed version components following semantic versioning
Enums§
- Bump
Version Type - Types of version bumps
- Command
Type - Available commands
- Publish
Error - Error types for publish operation
- Sync
Error - Error types for sync operation
Statics§
- DERIVE_
REGEX - Regex pattern to match derive attribute
Functions§
- execute_
bump - Read and update version in Cargo.toml
- execute_
fmt - Execute fmt command
- execute_
publish - Execute publish command for all packages in workspace
- execute_
sync - Align every local path entry under
[workspace.dependencies]with the workspace root version, and (optionally) the dep alias with the member crate’s actual[package].name. - format_
path - Format code at specific path
- is_
already_ published - Check whether
cargo publishstderr indicates the package version is already present on the registry (a success case for idempotent re-runs). - parse_
args - Parse command line arguments
- print_
help - Print help message
- print_
version - Print version
- resolve_
publish_ order - Resolve the publish order for a workspace:
[workspace.members]declaration order, with the root package (if any) placed at its topological position, validated against local dependency constraints.