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
- Set
versionunder[workspace.package]and the threeversion = "=YYYYMM.DD.N"requirements under[workspace.dependencies]inCargo.toml. - Update
urepo = "YYYYMM.DD.N"inexamples/tally/.urepo/urepo.tomlandexamples/release/.urepo/urepo.toml, and refreshCargo.lockand golden snapshots (UREPO_BLESS=1) if needed. - Run the verification commands and commit. Every workflow builds with
--locked. - 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-clibuildsurepofrom crates.io.cargo install --locked urepo-importbuildsurepo-import, which translatesmise.tomlfiles once. No prebuilt archive holds it.cargo binstall urepo-clidownloads the prebuilt release archive for the host platform using[package.metadata.binstall]incrates/cli/Cargo.toml.- Prebuilt archives,
SHA256SUMS,install.sh, andinstall.ps1are attached to each GitHub release. The installers read the latest release'sSHA256SUMS, install its archive for the platform under~/.urepo/bin, and add that folder toPATH. - In a repository pinning
urepo = "YYYYMM.DD.N"in.urepo/urepo.toml, an installedurepoof another version downloadsurepo-vYYYYMM.DD.N-<target>.tar.gz(.zipon Windows) from that release, checks it against the release'sSHA256SUMS, unpacks it under~/.urepo/versions/<version>, and runs it with the same arguments. Archive names and inner folder layouts must matchinstall.sh,install.ps1, andcrates/core/src/tool/urepo_release.rs.