Hi all,
We have a relatively large codebase that currently doesn't fit with the use of async / await. Currently we therefor already ban both tokio and async-std from our codebase through the use of cargo-deny to keep our dependencies from using these large runtimes and spawning new threads behind our back.
However, this doesn't preclude our team from still trying to use async/await (though potentially lighter runtimes) in our codebase. I started looking for a way to explicitly ban async/await similar to how we're explicitly banning unsafe_code
in some parts of our code, but couldn't find any (rustc -W help
didn't show anything relevant on 1.64).
I think a case similar to banning unsafe code through lints can be made for async/await as well, hence I'm proposing it here.