Skip to main content

Crate fraisier_ship

Crate fraisier_ship 

Source
Expand description

Version management and the release workflow for the fraisier CLI.

This crate backs fraisier version show / version bump and (the ship workflow) fraisier ship. The version logic understands both Rust (Cargo.toml) and Python (pyproject.toml) projects, editing the file in place with toml_edit so formatting and comments survive a bump.

Structs§

ShipOptions
How a ship run should behave.
ShipReport
The outcome of a ship run (or, with dry_run, the plan it would execute).
VersionInfo
A located project version: which file, what kind, and the current value.

Enums§

Bump
Which component of a semantic version to increment.
ProjectKind
Which kind of project a version file belongs to.
ShipError
An error from reading or bumping a project’s version.

Functions§

bump
Bump the project version in place, returning (old, new). Preserves the file’s formatting and comments.
locate
Locate the project version: Cargo.toml if present, else pyproject.toml.
next_version
Compute the next version string after applying level to current.
ship
Run the ship workflow against the project in dir.
show
Read the current version without modifying anything (version show).