Switch to dark theme

Releases

The five published crates (urepo-sys, urepo-core, urepo-ext, urepo-cli, and urepo-import) release together at workspace.package.version, pinning one another with exact =YYYYMM.DD.N requirements. urepo-policies has publish = false and never publishes. This page covers releasing urepo itself; see Releases for releasing projects with urepo.

Versions

A version is the date of its release as YYYYMM.DD.N: the year and month, the day, and the zero-based count of that day's releases. The first release on 2 December 2026 is 202612.2.0, and a second that day is 202612.2.1. Cargo allows no leading zero, so 5 January 2027 is 202701.5.0.

Cargo reads the first number as a major version, treating releases within one month as compatible and across months as breaking. Neither is a compatibility promise. A workspace pins one exact urepo version in .urepo/urepo.toml, and urepo refuses version ranges.

Until the first release, main stays one squashed commit. After the first release, main accepts changes only through pull requests merged as one squashed commit whose title feeds the next release's generated notes.

Before the tag

  1. Set version under [workspace.package] and the three version = "=YYYYMM.DD.N" requirements under [workspace.dependencies] in Cargo.toml.
  2. Update urepo = "YYYYMM.DD.N" in examples/tally/.urepo/urepo.toml and examples/release/.urepo/urepo.toml, and refresh Cargo.lock and golden snapshots (UREPO_BLESS=1) if needed.
  3. Run the verification commands and commit. Every workflow builds with --locked.
  4. Wait for CI to pass on that commit on main.

The tag

Tag the commit vYYYYMM.DD.N and push the tag. .github/workflows/release.yml runs three jobs in order:

Job What it does
Check the version Fails unless the tag, workspace.package.version, and the three internal =YYYYMM.DD.N dependencies in Cargo.toml agree
One per platform Builds urepo with cargo build --locked --release -p urepo-cli for x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, aarch64-apple-darwin, x86_64-apple-darwin, and x86_64-pc-windows-msvc, packing each as urepo-vYYYYMM.DD.N-<target> with LICENSE and README.md (.zip on Windows, .tar.gz elsewhere)
Publish Writes SHA256SUMS over the archives, publishes urepo-sys, urepo-core, urepo-ext, urepo-cli, and urepo-import to crates.io one crate at a time with cargo publish --locked, skipping any whose version crates.io already holds, and creates the GitHub release named after the tag with the archives, install notes, and GitHub's generated changelog

crates.io keeps published versions permanently, so publishing runs only after every target builds. The crates.io token lives in the CARGO_REGISTRY_TOKEN secret of the release GitHub environment (restricted to v* tags), which only the publish job names. crates.io never accepts the same version twice, so the job skips each crate whose version it already holds: a job that failed partway, such as on a server error of crates.io, publishes the rest and creates the GitHub release when run again.

What users install

  • cargo install --locked urepo-cli builds urepo from crates.io.
  • cargo install --locked urepo-import builds urepo-import, which translates mise.toml files once. No prebuilt archive holds it.
  • cargo binstall urepo-cli downloads the prebuilt release archive for the host platform using [package.metadata.binstall] in crates/cli/Cargo.toml.
  • Prebuilt archives, SHA256SUMS, install.sh, and install.ps1 are attached to each GitHub release. The installers read the latest release's SHA256SUMS, install its archive for the platform under ~/.urepo/bin, and add that folder to PATH.
  • In a repository pinning urepo = "YYYYMM.DD.N" in .urepo/urepo.toml, an installed urepo of another version downloads urepo-vYYYYMM.DD.N-<target>.tar.gz (.zip on Windows) from that release, checks it against the release's SHA256SUMS, unpacks it under ~/.urepo/versions/<version>, and runs it with the same arguments. Archive names and inner folder layouts must match install.sh, install.ps1, and crates/core/src/tool/urepo_release.rs.