-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
disallowed-methods = [ | ||
# These functions are very easy to misuse, please use `MaybeUninit` instead. | ||
"std::mem::zeroed", | ||
"std::mem::uninitialized", | ||
# Unbounded memory growth is not approved for use. Use a bounded channel buffer. | ||
"std::sync::mpsc::channel", | ||
"tokio::sync::mpsc::unbounded_channel", | ||
"crossbeam_channel::unbounded", | ||
# These methods poll futures in a biased manner without containing the word "biased" in their name. | ||
# This is a footgun and can result in the system starving itself out during high load scenarios. | ||
# See https://github.com/rust-lang/futures-rs/issues/2135 for more. | ||
"futures::future::select", | ||
"futures_util::future::select", | ||
"futures::future::try_select", | ||
"futures_util::future::try_select", | ||
"futures::future::select_ok", | ||
"futures_util::future::select_ok", | ||
] |