summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadrieril2020-04-05 19:27:10 +0100
committerNadrieril2020-04-05 19:35:10 +0100
commit5a10cd2e8fac854f4f6fa152cfb1b9ad71b0d091 (patch)
treed7b7a860f08831aa81faee961c0d675440daea32
parent5aea256e3998e6f72dc79b3ea4b935647ecf5cd6 (diff)
Fix cargo-release substitutions
-rw-r--r--README.md2
-rw-r--r--serde_dhall/release.toml8
-rw-r--r--serde_dhall/src/lib.rs2
3 files changed, 9 insertions, 3 deletions
diff --git a/README.md b/README.md
index 9248ea9..a077973 100644
--- a/README.md
+++ b/README.md
@@ -167,7 +167,7 @@ same name as the corresponding test.
## Changelog
-#### \[Unreleased\]
+#### [Unreleased]
#### [0.5.0] - 2020-04-05
diff --git a/serde_dhall/release.toml b/serde_dhall/release.toml
index 7921551..d15cf88 100644
--- a/serde_dhall/release.toml
+++ b/serde_dhall/release.toml
@@ -1,4 +1,10 @@
[[pre-release-replacements]]
+file = "src/lib.rs"
+search = "\\[doc\\(html_root_url = .*\\)\\]"
+replace = "[doc(html_root_url = \"https://docs.rs/{{crate_name}}/{{version}}\")]"
+exactly = 1
+
+[[pre-release-replacements]]
file = "../README.md"
search = "serde_dhall = \".*\""
replace = "{{crate_name}} = \"{{version}}\""
@@ -7,7 +13,7 @@ exactly = 1
[[pre-release-replacements]]
file = "../README.md"
search = "#### \\[Unreleased\\]"
-replace = "#### \\[Unreleased\\]\n\n#### [{{version}}] - {{date}}"
+replace = "#### [Unreleased]\n\n#### [{{version}}] - {{date}}"
exactly = 1
[[pre-release-replacements]]
diff --git a/serde_dhall/src/lib.rs b/serde_dhall/src/lib.rs
index c478b2a..bff8989 100644
--- a/serde_dhall/src/lib.rs
+++ b/serde_dhall/src/lib.rs
@@ -1,4 +1,4 @@
-#![doc(html_root_url = "https://docs.rs/serde_dhall/0.4.0")]
+#![doc(html_root_url = "https://docs.rs/serde_dhall/0.5.0")]
#![warn(missing_docs, missing_doc_code_examples)]
//! [Dhall][dhall] is a programmable configuration language that provides a non-repetitive
//! alternative to JSON and YAML.