-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
37 lines (32 loc) · 1.19 KB
/
Copy pathCargo.toml
File metadata and controls
37 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[package]
name = "rustversion-detect"
version = "0.3.1"
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"
# 1.27 - #[must_use] on methods
# 1.31 - First version supporting Rust 2018
#
# While we could support older versions than 1.31,
# there are few good reasons for doing so.
rust-version = "1.31"
# Exclude compile benchmarks & git metadata
exclude = [".gitignore", "/.github", "/benchcompile"]
[package.metadata.cdocs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--generate-link-to-definition"]
[lints.clippy]
## groups ##
cargo = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
# excessively pedantic
too-many-lines = "allow"
cast-lossless = "allow"
# depends on the MSRV, but currently usable
must-use-candidate = "warn" # #[must_use] on methods requires 1.27
# cannot use these on our MSRV
cast-possible-truncation = "allow" # TryFrom requires v1.34