[package]
name = "rustversion-detect"
version = "0.2.2"
authors = ["David Tolnay <dtolnay@gmail.com>", "Techcable"]
categories = ["development-tools::build-utils"]
keywords = ["autocfg", "cfg", "nightly", "rustc", "version"]
description = "Parses the output of rustc --version for use in build scripts"
edition = "2018"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Techcable/rustversion-detect"
rust-version = "1.31"
exclude = [".gitignore", "/.github", "/benchcompile"]
[package.metadata.cdocs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--generate-link-to-definition"]
[[test]]
name = "test_const"
required-features = ["compat-maybe-const-fn"]
[dependencies]
maybe-const-fn = { version = "0.1.1", optional = true }
[features]
default = ["compat-maybe-const-fn"]
compat-maybe-const-fn = ["maybe-const-fn"]
[lints.clippy]
cargo = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
too-many-lines = "allow"
cast-lossless = "allow"
must-use-candidate = "warn"
cast-possible-truncation = "allow"