# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2018"
rust-version = "1.31"
name = "rustversion"
version = "1.0.22"
authors = ["David Tolnay <dtolnay@gmail.com>"]
build = "build/build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Conditional compilation according to rustc compiler version"
documentation = "https://docs.rs/rustversion"
readme = "README.md"
categories = [
    "development-tools::build-utils",
    "no-std",
    "no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/rustversion"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
    "--generate-link-to-definition",
    "--extern-html-root-url=core=https://doc.rust-lang.org",
    "--extern-html-root-url=alloc=https://doc.rust-lang.org",
    "--extern-html-root-url=std=https://doc.rust-lang.org",
    "--extern-html-root-url=proc_macro=https://doc.rust-lang.org",
]

[lib]
name = "rustversion"
path = "src/lib.rs"
proc-macro = true

[[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"

[dev-dependencies.trybuild]
version = "1.0.49"
features = ["diff"]
