1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Configuration for `cargo release` (https://github.com/crate-ci/cargo-release).
# Install with `cargo install cargo-release`, then run from this crate's
# directory:
#
# cd rfm69-async
# cargo release 0.1.0 # dry-run preview (default)
# cargo release 0.1.0 --execute # actually commit + tag
#
# Defaults below are conservative: nothing is pushed and nothing is published.
# After --execute, `git push --follow-tags` and `cargo publish` are explicit
# user steps.
# Match existing tag style (v0.0.1, v0.0.2).
= "v{{version}}"
# Don't auto-push or auto-publish — leave both as explicit user steps.
= false
= false
# This repo doesn't GPG-sign commits or tags.
= false
= false
# Terse release commit, matching the rest of this repo's commit style.
# Plain DCO sign-off only — the version bump is mechanical, so no
# Assisted-by trailer.
= """rfm69-async: release {{version}}
Signed-off-by: Christian Taedcke <hacking@taedcke.com>
"""
# Mechanical text substitutions applied before the release commit lands.
# Paths are relative to this manifest directory.
= [
# Promote the Unreleased section to a dated release section, leaving a
# fresh empty Unreleased heading above it for the next cycle.
{ = "CHANGELOG.md", = "## \\[Unreleased\\]", = "## [Unreleased]\n\n## [{{version}}] - {{date}}", = 1 },
# Rewrite the comparator footer links so the new release brackets the
# previous tag and Unreleased now points at the newly-created tag.
{ = "CHANGELOG.md", = "\\[Unreleased\\]: https://github.com/chrta/rfm69-async/compare/.*\\.\\.\\.HEAD", = "[Unreleased]: https://github.com/chrta/rfm69-async/compare/v{{version}}...HEAD\n[{{version}}]: https://github.com/chrta/rfm69-async/compare/v{{prev_version}}...v{{version}}", = 1 },
# Keep the path-dep version in the examples crate in sync with this
# crate. The `path =` entry wins for builds, but the `version =` hint
# must stay ≤ the published version, so bump it alongside.
{ = "../examples/rp/Cargo.toml", = "rfm69-async = \\{ version = \"[^\"]+\"", = "rfm69-async = { version = \"{{version}}\"", = 1 },
# The examples crate keeps its own lockfile. cargo-release only touches
# this crate's Cargo.lock, so without this the examples lockfile would
# still record the old version after release and the next build would
# dirty the tree. The path-dep entry carries no checksum, so rewriting
# the version string is exactly what a rebuild would produce.
{ = "../examples/rp/Cargo.lock", = "name = \"rfm69-async\"\nversion = \"[^\"]+\"", = "name = \"rfm69-async\"\nversion = \"{{version}}\"", = 1 },
]