Skip to main content

Crate crate_cli

Crate crate_cli 

Source
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
PublishResult
Publish result for a single package
SyncReport
Result of a sync operation: which entries were rewritten.
Version
Parsed version components following semantic versioning

Enums§

BumpVersionType
Types of version bumps
CommandType
Available commands
PublishError
Error types for publish operation
SyncError
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 publish stderr 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.