[dev-dependencies.trybuild]
features = ["diff"]
version = "1.0.49"
[lib]
name = "rustversion"
path = "src/lib.rs"
proc-macro = true
[package]
authors = ["David Tolnay <dtolnay@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build/build.rs"
categories = ["development-tools::build-utils", "no-std", "no-std::no-alloc"]
description = "Conditional compilation according to rustc compiler version"
documentation = "https://docs.rs/rustversion"
edition = "2018"
license = "MIT OR Apache-2.0"
name = "rustversion"
readme = "README.md"
repository = "https://github.com/dtolnay/rustversion"
rust-version = "1.31"
version = "1.0.18"
[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
targets = ["x86_64-unknown-linux-gnu"]
[[test]]
name = "compiletest"
path = "tests/compiletest.rs"
[[test]]
name = "test_const"
path = "tests/test_const.rs"
[[test]]
name = "test_eval"
path = "tests/test_eval.rs"
[[test]]
name = "test_parse"
path = "tests/test_parse.rs"