Advice for removing #[async_trait]

85 points Alex_Medvedev_ 28 comments

Hello, I have a quite large Rust project, basically an entire Minecraft server software written in Rust. We use Tokio for async stuff and have the problem that we also have to use dynamic dispatch for async traits. The only solution I've found is to use async-trait, but the problem with that is that compile times are just terrible and I also heard that performance suffers, Any advice?