forked from microsoft/openvmm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
38 lines (30 loc) · 1.9 KB
/
clippy.toml
File metadata and controls
38 lines (30 loc) · 1.9 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
# 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 = "tracing::enabled", reason = "https://github.com/tokio-rs/tracing/issues/2519" },
{ path = "xshell::cmd", reason = "use `flowey::shell_cmd!` and `rt.sh` instead unless outside of a flowey node" },
]
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::task::noop_waker", reason = "use std::task::Waker::noop" },
{ path = "futures::task::noop_waker_ref", reason = "use std::task::Waker::noop" },
{ 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" },
{ path = "xshell::Shell::new", reason = "use `rt.sh` instead unless outside of a flowey node" },
]
avoid-breaking-exported-api = false
check-private-items = true