Skip to content

Commit

Permalink
[skip ci] modernize cargo-release setup.
Browse files Browse the repository at this point in the history
* cargo-release no longer recognizes the "dev-version" setting.
* Use automatic replacement when publishing mockall_double.
* Publish separate release tags for mockall_double
  • Loading branch information
asomers committed Dec 10, 2023
1 parent 0572cf6 commit 1dd573d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions mockall_double/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
2 changes: 0 additions & 2 deletions release.toml

This file was deleted.

0 comments on commit 1dd573d

Please sign in to comment.