From 1dd573dbe16ef045da9252232d6e9db92f6c5a54 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 9 Dec 2023 17:50:06 -0700 Subject: [PATCH] [skip ci] modernize cargo-release setup. * cargo-release no longer recognizes the "dev-version" setting. * Use automatic replacement when publishing mockall_double. * Publish separate release tags for mockall_double --- mockall_double/Cargo.toml | 8 ++++++++ release.toml | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) delete mode 100644 release.toml diff --git a/mockall_double/Cargo.toml b/mockall_double/Cargo.toml index 988f2d1f..3bf0f226 100644 --- a/mockall_double/Cargo.toml +++ b/mockall_double/Cargo.toml @@ -15,6 +15,14 @@ Test double adapter for Mockall [lib] proc-macro = true +[package.metadata.release] +tag-prefix = "mockall_double-" +pre-release-replacements = [ + { file="README.md", search="mockall_double = \"[a-z0-9\\.-]+\"", replace="mockall_double = \"{{version}}\""} , + { file="CHANGELOG.md", search="Unreleased", replace="{{version}}" }, + { file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}" } +] + [features] nightly = ["proc-macro2/nightly"] diff --git a/release.toml b/release.toml deleted file mode 100644 index 4beee3fc..00000000 --- a/release.toml +++ /dev/null @@ -1,2 +0,0 @@ -# Adding a dev version breaks dependencies like {version = "=...", path = "..."} -dev-version = false