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