Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion newtype_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ std = []
std-unstable = []

[build-dependencies]
rustc_version = "0.1.7"
rustc_version = "0.2"

[dev-dependencies]
macro-attr = { version = "0.2.1", path = ".." }
4 changes: 2 additions & 2 deletions newtype_derive/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ files in the project carrying such notice may not be copied, modified,
or distributed except according to those terms.
*/
extern crate rustc_version;
use rustc_version::{version_matches};
use rustc_version::{version, Version};

fn main() {
println!("cargo:rerun-if-changed=build.rs");

if version_matches("1.8.0") {
if version().unwrap() >= Version::parse("1.8.0").unwrap() {
println!("cargo:rustc-cfg=op_assign");
}
}