Skip to content

Commit

Permalink
chore(release): add hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Feb 6, 2024
1 parent 71d1f10 commit 592273d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ version.workspace = true
[package.metadata]
msrv = "1.65.0" # Needed to duplicate, because cargo-msrv does not support workspace

[package.metadata.release]
pre-release-replacements = [
{file="README.md", search="> \\[!WARNING\\]\n> ", replace="> **Warning**: ", exactly=1},
{file="book/src/getting-started.md", search="logos2 = \"[0-9]+\\.[0-9]+\\.[0-9]+\"", replace="logos2 = \"{{version}}\"", exactly=1},
]
shared-version = true

[lib]
bench = false
name = "logos"
Expand All @@ -50,10 +57,6 @@ all-features = true
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.release]
shared-version = true
tag-name = "v{{version}}"

[profile]
bench = {lto = true}
release = {lto = true}
Expand Down
3 changes: 3 additions & 0 deletions logos-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ readme.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true

[package.metadata.release]
shared-version = true
3 changes: 3 additions & 0 deletions logos-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ readme.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true

[package.metadata.release]
shared-version = true
3 changes: 3 additions & 0 deletions logos-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ readme.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true

[package.metadata.release]
shared-version = true

0 comments on commit 592273d

Please sign in to comment.