-
Notifications
You must be signed in to change notification settings - Fork 0
/
clippy.toml
86 lines (82 loc) · 3.23 KB
/
clippy.toml
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
[[disallowed-methods]]
path = "std::thread::Builder::spawn"
reason = """
Wrapper function `<std::thread::Builder as tikv_util::sys::thread::StdThreadBuildWrapper>::spawn_wrapper`
should be used instead, refer to https://github.com/tikv/tikv/pull/12442 for more details.
"""
[[disallowed-methods]]
path = "tokio::runtime::builder::Builder::on_thread_start"
reason = """
Adding hooks directly will omit system hooks, please use
<tokio::runtime::builder::Builder as tikv_util::sys::thread::ThreadBuildWrapper>::with_sys_and_custom_hooks
refer to https://github.com/tikv/tikv/pull/12442 and https://github.com/tikv/tikv/pull/15017 for more details.
"""
[[disallowed-methods]]
path = "tokio::runtime::builder::Builder::on_thread_stop"
reason = """
Adding hooks directly will omit system hooks, please use
<tokio::runtime::builder::Builder as tikv_util::sys::thread::ThreadBuildWrapper>::with_sys_and_custom_hooks
refer to https://github.com/tikv/tikv/pull/12442 and https://github.com/tikv/tikv/pull/15017 for more details.
"""
[[disallowed-methods]]
path = "futures_executor::thread_pool::ThreadPoolBuilder::after_start"
reason = """
Adding hooks directly will omit system hooks, please use
<futures_executor::thread_pool::ThreadPoolBuilder as tikv_util::sys::thread::ThreadBuildWrapper>::with_sys_and_custom_hooks
refer to https://github.com/tikv/tikv/pull/12442 and https://github.com/tikv/tikv/pull/15017 for more details.
"""
[[disallowed-methods]]
path = "futures_executor::thread_pool::ThreadPoolBuilder::before_stop"
reason = """
Adding hooks directly will omit system hooks, please use
<futures_executor::thread_pool::ThreadPoolBuilder as tikv_util::sys::thread::ThreadBuildWrapper>::with_sys_and_custom_hooks
refer to https://github.com/tikv/tikv/pull/12442 and https://github.com/tikv/tikv/pull/15017 for more details.
"""
# See more about RUSTSEC-2020-0071 in deny.toml.
[[disallowed-methods]]
path = "time::now"
reason = "time::now is unsound, see RUSTSEC-2020-0071"
[[disallowed-methods]]
path = "time::at"
reason = "time::at is unsound, see RUSTSEC-2020-0071"
[[disallowed-methods]]
path = "time::at_utc"
reason = "time::at_utc is unsound, see RUSTSEC-2020-0071"
# See more about RUSTSEC-2023-0072 in deny.toml.
[[disallowed-methods]]
path = "openssl::x509::store::X509StoreRef::objects"
reason = """
X509StoreRef::objects is unsound, see RUSTSEC-2020-0071
"""
# See more about RUSTSEC-2024-0357 in deny.toml.
[[disallowed-types]]
path = "openssl::bio::MemBio"
reason = """
openssl::bio::MemBio::get_buf is unsound, see RUSTSEC-2024-0357
"""
[[disallowed-types]]
path = "openssl::pkcs7::Pkcs7"
reason = """
openssl::pkcs7::Pkcs7 may call openssl::bio::MemBio::get_buf, \
see RUSTSEC-2024-0357
"""
[[disallowed-types]]
path = "openssl::pkey::PKeyRef"
reason = """
openssl::pkey::PKeyRef may call openssl::bio::MemBio::get_buf, \
see RUSTSEC-2024-0357
"""
[[disallowed-types]]
path = "openssl::cms::CmsContentInfoRef"
reason = """
openssl::cms::CmsContentInfoRef may call openssl::bio::MemBio::get_buf, \
see RUSTSEC-2024-0357
"""
[[disallowed-types]]
path = "openssl::asn1::Asn1GeneralizedTimeRef"
reason = """
openssl::asn1::Asn1GeneralizedTimeRef may call openssl::bio::MemBio::get_buf, \
see RUSTSEC-2024-0357
"""
avoid-breaking-exported-api = false
upper-case-acronyms-aggressive = true