| 1 |
From f99c05bc94bec786e67da092bae9a52f033b90ed Mon Sep 17 00:00:00 2001 |
| 2 |
From: Wolfgang Silbermayr <[email protected]> |
| 3 |
Date: Wed, 12 Dec 2018 07:19:58 +0100 |
| 4 |
Subject: [PATCH] Update rustc_version build-dep to 0.2 |
| 5 |
|
| 6 |
--- |
| 7 |
Cargo.toml | 2 +- |
| 8 |
build.rs | 4 ++-- |
| 9 |
2 files changed, 3 insertions(+), 3 deletions(-) |
| 10 |
|
| 11 |
diff --git a/Cargo.toml b/Cargo.toml |
| 12 |
index d815fc6..b41571f 100644 |
| 13 |
--- a/Cargo.toml |
| 14 |
+++ b/Cargo.toml |
| 15 |
@@ -23,7 +23,7 @@ repository = "https://github.com/DanielKeep/rust-custom-derive" |
| 16 |
[dev-dependencies.custom_derive] |
| 17 |
version = "0.1.1" |
| 18 |
[build-dependencies.rustc_version] |
| 19 |
-version = "0.1.7" |
| 20 |
+version = "0.4" |
| 21 |
|
| 22 |
[features] |
| 23 |
default = ["std"] |
| 24 |
diff --git a/build.rs b/build.rs |
| 25 |
index 779dff1..d4eeaaf 100644 |
| 26 |
--- a/build.rs |
| 27 |
+++ b/build.rs |
| 28 |
@@ -8,12 +8,12 @@ files in the project carrying such notice may not be copied, modified, |
| 29 |
or distributed except according to those terms. |
| 30 |
*/ |
| 31 |
extern crate rustc_version; |
| 32 |
-use rustc_version::{version_matches}; |
| 33 |
+use rustc_version::{version, Version}; |
| 34 |
|
| 35 |
fn main() { |
| 36 |
println!("cargo:rerun-if-changed=build.rs"); |
| 37 |
|
| 38 |
- if version_matches("1.8.0") { |
| 39 |
+ if version().unwrap() == Version::new(1u64, 8u64, 0u64) { |
| 40 |
println!("cargo:rustc-cfg=op_assign"); |
| 41 |
} |
| 42 |
} |
| 43 |
-- |
| 44 |
2.20.0 |
| 45 |
|