-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCargo.toml
40 lines (37 loc) · 1.5 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[package]
name = "gethostname"
description = "gethostname for all platforms"
readme = "README.md"
homepage = "https://github.com/swsnr/gethostname.rs"
repository = "https://github.com/swsnr/gethostname.rs.git"
documentation = "https://docs.rs/gethostname"
version = "1.0.0"
authors = ["Sebastian Wiesner <sebastian@swsnr.de>"]
edition = "2021"
license = "Apache-2.0"
keywords = ["gethostname", "DNS", "hostname"]
categories = ["os", "api-bindings"]
rust-version = "1.64"
[target.'cfg(not(windows))'.dependencies]
rustix = { version = "0.38.34", default-features = false, features = [
"system",
] }
[target.'cfg(windows)'.dependencies]
windows-targets = "0.52.4"
[package.metadata.release]
pre-release-commit-message = "Release {{version}}"
tag-prefix = ""
tag-message = "Version {{tag_name}}"
pre-release-replacements = [
# Update the changelog
{ file = "CHANGELOG.md", search = "## \\[Unreleased\\]", replace = "## [Unreleased]\n\n## [{{version}}] – {{date}}", exactly = 1 },
{ file = "CHANGELOG.md", search = "HEAD", replace = "{{tag_name}}", exactly = 1 },
{ file = "CHANGELOG.md", search = "\\[Unreleased\\]: ", replace = "[Unreleased]: https://github.com/swsnr/gethostname.rs/compare/{{tag_name}}...HEAD\n[{{version}}]: ", exactly = 1 },
]
# Github actions does this for us.
verify = false
# The release workflow does this for us.
publish = false
# We'll first publish the commit to ensure that test pass, and then the tag if
# the commit's green; otherwise our own rulesets will reject the push.
push = false