Skip to main content

Crate release_kit

Crate release_kit 

Source
Expand description

release-kit: a canonical release workflow, carried whole by one binary.

The library exists so the crate’s own tests can link the modules; the rk binary in main.rs is the product. embedded holds the payload and payload_roots its one inventory, cli the argument surface, commands the handlers, devshell the consumer pin, depend the dependency matrix, skills the user-scope skill install, digest the one hash type, and error the one exit-code matrix.

Modules§

applog
The application log: one rotating file for the whole binary.
assess
Classify a target repository before anything lands.
atomic
The temp-plus-rename writer every landing write goes through.
branches
Local-branch hygiene after squash merges.
cli
Command-line surface: clap derive types only, one module per subcommand’s arguments. No behavior lives here; each variant routes to its handler in commands.
commands
One handler per subcommand. Handlers hold the behavior; main only dispatches, and cli only declares the argument surface.
config
The committed target answers, parsed strictly and written from authored text. Comparisons continue to use the landing record alone.
depend
rk depend: another project as a dependency of a target, from how the source distributes itself and how the target manages its tools.
detect
Forge, repository, and technology detection.
devshell
rk devshell: release-kit as a consumer project’s development dependency, kept fresh.
diagnostic
Diagnostics as data: the closed reason vocabulary and the typed error report.
digest
SHA-256 digests in their hex text form.
embedded
The compile-time payload: everything the binary serves or lands.
error
Crate-level error type and exit-code mapping.
events
The NDJSON event envelope for long-running commands.
issue
Starting work from a forge issue: the pure half.
landing
The target-side landing model: file kinds, parameter rendering, and the routing block.
maintenance
The shared process-side discipline of local-resource cleanup.
output
The output boundary every handler emits through.
payload_roots
probes
The environment probe catalog.
registry
The pinned-tool registry, parsed from the embedded versions.toml.
setup
The executable half of method/02-setup.md.
skills
The agent skills: the payload, the user-scope record, and the installer.
worktree
Worktree hygiene after squash merges: the pure half.