forked from microsoft/openvmm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clippy.toml
36 lines (28 loc) · 1.67 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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
disallowed-types = [
{ path = "std::sync::Mutex", reason = "use parking_lot::Mutex" },
{ path = "std::sync::Condvar", reason = "use parking_lot::Condvar" },
{ path = "std::sync::RwLock", reason = "use parking_lot::RwLock" },
{ path = "futures::stream::futures_unordered::FuturesUnordered", reason = "use unicycle::FuturesUnordered" },
]
disallowed-macros = [
{ path = "futures::pin_mut", reason = "use std::pin::pin" },
{ path = "futures::ready", reason = "use std::task::ready" },
{ path = "openhcl_boot::boot_logger::debug_log", reason = "only use in local debugging, use log! if you want a production log message"},
]
disallowed-methods = [
{ path = "futures::future::ready", reason = "use std::future::ready" },
{ path = "futures::future::pending", reason = "use std::future::pending" },
# This is used by futures::select! and futures::join!, so leave it out for now.
# { path = "futures::future::poll_fn", reason = "use std::future::poll_fn" },
{ path = "futures::channel::mpsc::channel", reason = "use mesh or async-channel" },
{ path = "futures::channel::mpsc::unbounded", reason = "use mesh or async-channel" },
{ path = "futures::channel::oneshot::channel", reason = "use mesh or async-channel" },
{ path = "std::fs::canonicalize", reason = "you likely want std::path::absolute" },
{ path = "std::path::Path::canonicalize", reason = "you likely want std::path::absolute" },
]
avoid-breaking-exported-api = false
# These will become the default in a future version of Rust.
accept-comment-above-statement = true
accept-comment-above-attributes = true