]> git.lizzy.rs Git - rust.git/blobdiff - rustc_tools_util/README.md
Don't lint `explicit_auto_deref` when the initial type is neither a reference, nor...
[rust.git] / rustc_tools_util / README.md
index b101f55e50955c9d3129fd6574f155fcb5cb25f4..e947f9c7e66ed29d7fdc0cf9e4fbc5828994fca5 100644 (file)
@@ -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()`
@@ -30,6 +30,10 @@ fn main() {
         "cargo:rustc-env=COMMIT_DATE={}",
         rustc_tools_util::get_commit_date().unwrap_or_default()
     );
+    println!(
+        "cargo:rustc-env=RUSTC_RELEASE_CHANNEL={}",
+        rustc_tools_util::get_channel().unwrap_or_default()
+    );
 }
 
 ````
@@ -49,7 +53,7 @@ This gives the following output in clippy:
 
 ## License
 
-Copyright 2014-2018 The Rust Project Developers
+Copyright 2014-2022 The Rust Project Developers
 
 Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
 http://www.apache.org/licenses/LICENSE-2.0> or the MIT license