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}}\"" }, +]