rustc_tool_utils bump version in anticipation of a new release

cc https://github.com/rust-lang/rust-clippy/issues/9553
This commit is contained in:
Matthias Krüger 2022-10-01 00:52:25 +02:00
parent 31b17411a6
commit 418b30b499
4 changed files with 9 additions and 9 deletions

View File

@ -56,7 +56,7 @@ tokio = { version = "1", features = ["io-util"] }
rustc-semver = "1.1" rustc-semver = "1.1"
[build-dependencies] [build-dependencies]
rustc_tools_util = { version = "0.2", path = "rustc_tools_util" } rustc_tools_util = { version = "0.2.1", path = "rustc_tools_util" }
[features] [features]
deny-warnings = ["clippy_lints/deny-warnings"] deny-warnings = ["clippy_lints/deny-warnings"]

View File

@ -1,6 +1,6 @@
[package] [package]
name = "rustc_tools_util" name = "rustc_tools_util"
version = "0.2.0" version = "0.2.1"
description = "small helper to generate version information for git packages" description = "small helper to generate version information for git packages"
repository = "https://github.com/rust-lang/rust-clippy" repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md" readme = "README.md"

View File

@ -6,17 +6,17 @@ for packages installed from a git repo
## Usage ## Usage
Add a `build.rs` file to your repo and list it in `Cargo.toml` Add a `build.rs` file to your repo and list it in `Cargo.toml`
```` ````toml
build = "build.rs" build = "build.rs"
```` ````
List rustc_tools_util as regular AND build dependency. List rustc_tools_util as regular AND build dependency.
```` ````toml
[dependencies] [dependencies]
rustc_tools_util = "0.1" rustc_tools_util = "0.2.1"
[build-dependencies] [build-dependencies]
rustc_tools_util = "0.1" rustc_tools_util = "0.2.1"
```` ````
In `build.rs`, generate the data in your `main()` In `build.rs`, generate the data in your `main()`

View File

@ -137,7 +137,7 @@ fn test_struct_local() {
let vi = get_version_info!(); let vi = get_version_info!();
assert_eq!(vi.major, 0); assert_eq!(vi.major, 0);
assert_eq!(vi.minor, 2); assert_eq!(vi.minor, 2);
assert_eq!(vi.patch, 0); assert_eq!(vi.patch, 1);
assert_eq!(vi.crate_name, "rustc_tools_util"); assert_eq!(vi.crate_name, "rustc_tools_util");
// hard to make positive tests for these since they will always change // hard to make positive tests for these since they will always change
assert!(vi.commit_hash.is_none()); assert!(vi.commit_hash.is_none());
@ -147,7 +147,7 @@ fn test_struct_local() {
#[test] #[test]
fn test_display_local() { fn test_display_local() {
let vi = get_version_info!(); let vi = get_version_info!();
assert_eq!(vi.to_string(), "rustc_tools_util 0.2.0"); assert_eq!(vi.to_string(), "rustc_tools_util 0.2.1");
} }
#[test] #[test]
@ -156,7 +156,7 @@ fn test_debug_local() {
let s = format!("{vi:?}"); let s = format!("{vi:?}");
assert_eq!( assert_eq!(
s, s,
"VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 2, patch: 0 }" "VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 2, patch: 1 }"
); );
} }
} }