Skip to content

Commit 7d848bc

Browse files
committed
Test commit
1 parent aa66212 commit 7d848bc

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

rustc_tools_util/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
3+
## Version 0.3.0
4+
5+
* Added `setup_version_info!();` macro for automated scripts.
6+
* `get_version_info!()` no longer requires the user to import `rustc_tools_util::VersionInfo` and `std::env`

rustc_tools_util/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ build = "build.rs"
1313
List rustc_tools_util as regular AND build dependency.
1414
````toml
1515
[dependencies]
16-
rustc_tools_util = "0.2.1"
16+
rustc_tools_util = "0.3.0"
1717

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

2222
In `build.rs`, generate the data in your `main()`
@@ -44,6 +44,9 @@ This gives the following output in clippy:
4444
This project is part of the rust-lang/rust-clippy repository. The source code
4545
can be found under `./rustc_tools_util/`.
4646

47+
The changelog for `rustc_tools_util` is available under:
48+
[`rustc_tools_util/CHANGELOG.md`](https://github.com/rust-lang/rust-clippy/blob/master/rustc_tools_util/CHANGELOG.md)
49+
4750
## License
4851

4952
Copyright 2014-2022 The Rust Project Developers

rustc_tools_util/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
22

3-
use std::env;
4-
53
/// This macro creates the version string during compilation from the
64
/// current environment
75
#[macro_export]
@@ -121,7 +119,7 @@ pub fn get_commit_date() -> Option<String> {
121119

122120
#[must_use]
123121
pub fn get_channel() -> String {
124-
match env::var("CFG_RELEASE_CHANNEL") {
122+
match std::env::var("CFG_RELEASE_CHANNEL") {
125123
Ok(channel) => channel,
126124
Err(_) => {
127125
// if that failed, try to ask rustc -V, do some parsing and find out

0 commit comments

Comments
 (0)