diff options
| author | bors <bors@rust-lang.org> | 2022-10-01 14:20:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-01 14:20:32 +0000 |
| commit | 8030ee9ae7f49f0f7ba7ac699f4d875a04f036f8 (patch) | |
| tree | 13aebb73ecc5d3f606708065e9c03f901617b911 | |
| parent | 31b17411a6cd5c4b36cde6ff008de1d3ec128ac4 (diff) | |
| parent | 418b30b499144b0acd71b2d4c4dfe2f6931fa8c7 (diff) | |
| download | rust-8030ee9ae7f49f0f7ba7ac699f4d875a04f036f8.tar.gz rust-8030ee9ae7f49f0f7ba7ac699f4d875a04f036f8.zip | |
Auto merge of #9568 - matthiaskrgr:tools_util_bump, r=flip1995
rustc_tool_utils: bump version in anticipation of a new release cc https://github.com/rust-lang/rust-clippy/issues/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`.
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | rustc_tools_util/Cargo.toml | 2 | ||||
| -rw-r--r-- | rustc_tools_util/README.md | 8 | ||||
| -rw-r--r-- | rustc_tools_util/src/lib.rs | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/Cargo.toml b/Cargo.toml index b1bec0c46ca..dbf0dd33806 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,7 +56,7 @@ tokio = { version = "1", features = ["io-util"] } rustc-semver = "1.1" [build-dependencies] -rustc_tools_util = { version = "0.2", path = "rustc_tools_util" } +rustc_tools_util = { version = "0.2.1", path = "rustc_tools_util" } [features] deny-warnings = ["clippy_lints/deny-warnings"] diff --git a/rustc_tools_util/Cargo.toml b/rustc_tools_util/Cargo.toml index 9554d4d6c00..89c3d6aaa89 100644 --- a/rustc_tools_util/Cargo.toml +++ b/rustc_tools_util/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustc_tools_util" -version = "0.2.0" +version = "0.2.1" description = "small helper to generate version information for git packages" repository = "https://github.com/rust-lang/rust-clippy" readme = "README.md" diff --git a/rustc_tools_util/README.md b/rustc_tools_util/README.md index 01891b51d3b..e947f9c7e66 100644 --- a/rustc_tools_util/README.md +++ b/rustc_tools_util/README.md @@ -6,17 +6,17 @@ for packages installed from a git repo ## Usage Add a `build.rs` file to your repo and list it in `Cargo.toml` -```` +````toml build = "build.rs" ```` List rustc_tools_util as regular AND build dependency. -```` +````toml [dependencies] -rustc_tools_util = "0.1" +rustc_tools_util = "0.2.1" [build-dependencies] -rustc_tools_util = "0.1" +rustc_tools_util = "0.2.1" ```` In `build.rs`, generate the data in your `main()` diff --git a/rustc_tools_util/src/lib.rs b/rustc_tools_util/src/lib.rs index 0f988601670..01d25c53126 100644 --- a/rustc_tools_util/src/lib.rs +++ b/rustc_tools_util/src/lib.rs @@ -137,7 +137,7 @@ mod test { let vi = get_version_info!(); assert_eq!(vi.major, 0); assert_eq!(vi.minor, 2); - assert_eq!(vi.patch, 0); + assert_eq!(vi.patch, 1); assert_eq!(vi.crate_name, "rustc_tools_util"); // hard to make positive tests for these since they will always change assert!(vi.commit_hash.is_none()); @@ -147,7 +147,7 @@ mod test { #[test] fn test_display_local() { 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] @@ -156,7 +156,7 @@ mod test { let s = format!("{vi:?}"); assert_eq!( 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 }" ); } } |
