-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.toml
More file actions
68 lines (59 loc) · 1.93 KB
/
Copy pathconfig.toml
File metadata and controls
68 lines (59 loc) · 1.93 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
[profile.release]
# Debug disabled to increase CI speed and reduce image size. If we need to do profiling
# we can temporarily enable this.
debug = false
lto = "thin"
split-debuginfo = "off"
[profile.ci-test]
debug = false
inherits = "test"
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
#####################################
# Warnings and Linter Configuration #
#####################################
# This is a hack to work around the fact that neither rustc, cargo, nor clippy
# allows globally configuring lints. To avoid having to copy a massive block of
# allow/warn/deny statements to the top of every file, we configure them as
# all-profile compiler flags here.
[target.'cfg(all())']
rustflags = [
"-Dwarnings",
"-Dfuture-incompatible",
"-Dnonstandard-style",
"-Drust-2018-compatibility",
"-Drust-2018-idioms",
"-Drust-2021-compatibility",
"-Dunused",
"-Dclippy::all",
"-Dclippy::correctness",
"-Dclippy::suspicious",
"-Dclippy::style",
"-Dclippy::complexity",
"-Dclippy::perf",
"-Dclippy::pedantic",
"-Dclippy::nursery",
"-Aclippy::missing-errors-doc",
"-Aclippy::missing-panics-doc",
"-Aclippy::module-name-repetitions",
"-Aclippy::similar-names",
"-Aclippy::too-long-first-doc-paragraph",
"-Aclippy::too-many-arguments",
"-Aclippy::too-many-lines",
# Spurious as of 1.86
"-Aclippy::future-not-send",
"-Aclippy::missing_const_for_fn",
"-Aclippy::significant_drop_tightening",
"-Aclippy::significant_drop_in_scrutinee",
# This is triggering in built.rs and disabling it in the owning mod is not working.
"-Aclippy::needless_raw_string_hashes",
"-Aclippy::doc_markdown",
]
# Fetch internal repos via git
[net]
git-fetch-with-cli = true
# Make sure we don't compile protoc
[env]
PROTOC_NO_VENDOR = "true"