-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathCargo.toml
More file actions
86 lines (76 loc) · 2.71 KB
/
Cargo.toml
File metadata and controls
86 lines (76 loc) · 2.71 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[package]
categories = ["development-tools::build-utils", "development-tools::ffi"]
description = "A library to configure a Cargo build script for binding generation and downstream linking of the WDK (Windows Driver Kit)"
edition.workspace = true
keywords = ["build-dependencies", "wdk", "windows"]
license.workspace = true
name = "wdk-build"
readme.workspace = true
repository.workspace = true
rust-version.workspace = true
version = "0.5.1"
[package.metadata.cargo-machete]
ignored = [
"regex", # Used for enabling "unicode-case" feature which lets us use case-insensitive regex patterns in bindgen
]
[features]
nightly = []
[dependencies]
anyhow.workspace = true
bindgen.workspace = true
camino.workspace = true
cargo_metadata.workspace = true
cfg-if.workspace = true
clap = { features = ["derive"], workspace = true }
clap-cargo.workspace = true
paste.workspace = true
regex = { features = ["unicode-case"], workspace = true }
rustversion.workspace = true
semver.workspace = true
serde = { features = ["derive"], workspace = true }
serde_json.workspace = true
thiserror.workspace = true
tracing.workspace = true
windows = { features = [
"Win32_Foundation",
"Win32_System_Registry",
], workspace = true }
[build-dependencies]
rustversion.workspace = true
[dev-dependencies]
assert_fs.workspace = true
windows = { features = ["Win32_UI_Shell"], workspace = true }
# Cannot inherit workspace lints since overriding them is not supported yet: https://github.com/rust-lang/cargo/issues/13157
# [lints]
# workspace = true
#
# Differences from the workspace lints have comments explaining why they are different
[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "forbid"
[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(skip_umdf_static_crt_check)", "cfg(wdk_build_unstable)"]
level = "warn"
[lints.clippy]
# Lint Groups
all = "deny"
cargo = "warn"
nursery = "warn"
pedantic = "warn"
# Individual Lints
# multiple_unsafe_ops_per_block = "forbid"
multiple_unsafe_ops_per_block = "deny" # This is lowered to deny since clap generates allow(clippy::restriction) in its Parser and Args derive macros
# undocumented_unsafe_blocks = "forbid"
undocumented_unsafe_blocks = "deny" # This is lowered to deny since clap generates allow(clippy::restriction) in its Parser and Args derive macros
# unnecessary_safety_doc = "forbid"
unnecessary_safety_doc = "deny" # This is lowered to deny since clap generates allow(clippy::restriction) in its Parser and Args derive macros
[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "warn"
invalid_codeblock_attributes = "warn"
invalid_html_tags = "warn"
invalid_rust_codeblocks = "warn"
missing_crate_level_docs = "warn"
private_intra_doc_links = "warn"
redundant_explicit_links = "warn"
unescaped_backticks = "warn"