Skip to content

Commit 8030ee9

Browse files
committed
Auto merge of #9568 - matthiaskrgr:tools_util_bump, r=flip1995
rustc_tool_utils: bump version in anticipation of a new release cc #9553 After this is merged, I will publish the 0.2.1 version to crates.io, and make another PR that switches clippy to use the dependency from crates.io. The source can still be kept in the clippy repo though imo. This will allow miri and clippy to "share" the crate in the rustc repo once they both depend on it. reopen of #9561 changelog: release `rustc_tools_util` on `Crates.io`.
2 parents 31b1741 + 418b30b commit 8030ee9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tokio = { version = "1", features = ["io-util"] }
5656
rustc-semver = "1.1"
5757

5858
[build-dependencies]
59-
rustc_tools_util = { version = "0.2", path = "rustc_tools_util" }
59+
rustc_tools_util = { version = "0.2.1", path = "rustc_tools_util" }
6060

6161
[features]
6262
deny-warnings = ["clippy_lints/deny-warnings"]

rustc_tools_util/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustc_tools_util"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "small helper to generate version information for git packages"
55
repository = "https://github.com/rust-lang/rust-clippy"
66
readme = "README.md"

rustc_tools_util/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ for packages installed from a git repo
66
## Usage
77

88
Add a `build.rs` file to your repo and list it in `Cargo.toml`
9-
````
9+
````toml
1010
build = "build.rs"
1111
````
1212

1313
List rustc_tools_util as regular AND build dependency.
14-
````
14+
````toml
1515
[dependencies]
16-
rustc_tools_util = "0.1"
16+
rustc_tools_util = "0.2.1"
1717

1818
[build-dependencies]
19-
rustc_tools_util = "0.1"
19+
rustc_tools_util = "0.2.1"
2020
````
2121

2222
In `build.rs`, generate the data in your `main()`

rustc_tools_util/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ mod test {
137137
let vi = get_version_info!();
138138
assert_eq!(vi.major, 0);
139139
assert_eq!(vi.minor, 2);
140-
assert_eq!(vi.patch, 0);
140+
assert_eq!(vi.patch, 1);
141141
assert_eq!(vi.crate_name, "rustc_tools_util");
142142
// hard to make positive tests for these since they will always change
143143
assert!(vi.commit_hash.is_none());
@@ -147,7 +147,7 @@ mod test {
147147
#[test]
148148
fn test_display_local() {
149149
let vi = get_version_info!();
150-
assert_eq!(vi.to_string(), "rustc_tools_util 0.2.0");
150+
assert_eq!(vi.to_string(), "rustc_tools_util 0.2.1");
151151
}
152152

153153
#[test]
@@ -156,7 +156,7 @@ mod test {
156156
let s = format!("{vi:?}");
157157
assert_eq!(
158158
s,
159-
"VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 2, patch: 0 }"
159+
"VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 2, patch: 1 }"
160160
);
161161
}
162162
}

0 commit comments

Comments
 (0)