From 715f9ba89a309f24226005ca1fbb9f59fe9eac68 Mon Sep 17 00:00:00 2001 From: Jed Brown Date: Tue, 31 Oct 2023 23:40:15 -0600 Subject: [PATCH] cargo release automation --- rust/libceed-sys/Cargo.toml | 6 ++++++ rust/libceed/Cargo.toml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/rust/libceed-sys/Cargo.toml b/rust/libceed-sys/Cargo.toml index 827f3578ec..4a67efc07e 100644 --- a/rust/libceed-sys/Cargo.toml +++ b/rust/libceed-sys/Cargo.toml @@ -35,3 +35,9 @@ pkg-config = "0.3.19" [dev-dependencies] version-sync = "0.9.2" + +[package.metadata.release] +pre-release-replacements = [ + { file = "README.md", search = "libceed-sys = \"[0-9.]*\"", replace = "libceed-sys = \"{{version}}\"" }, + { file = "build.rs", search = "atleast_version\\(\"[0-9.]*\"\\)", replace = "atleast_version(\"{{version}}\")" }, +] diff --git a/rust/libceed/Cargo.toml b/rust/libceed/Cargo.toml index 4f63fb04af..a1daa523ec 100644 --- a/rust/libceed/Cargo.toml +++ b/rust/libceed/Cargo.toml @@ -26,3 +26,9 @@ version-sync = "0.9.2" [package.metadata.docs.rs] features = ["katexit"] + +[package.metadata.release] +pre-release-replacements = [ + { file = "README.md", search = "libceed = \"[0-9.]*\"", replace = "libceed = \"{{version}}\"" }, + { file = "../../README.md", search = "libceed = \"[0-9.]*\"", replace = "libceed = \"{{version}}\"" }, +]