-
Notifications
You must be signed in to change notification settings - Fork 1
/
clippy.toml
55 lines (52 loc) · 2.39 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
[[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
"""
avoid-breaking-exported-api = false
upper-case-acronyms-aggressive = true