Soft question: does async code increase crate incremental compile time?

Normally, if I write a few hundred lines of 'normal' code, the incremental compile time barely changes.

Even when using async_std (which appears to have lower incremental compile time than tokio), it seems that after writing a few hundred lines of 'normal async code', my incremental compile time jumped by 1-2 seconds.

Have others experienced this? Due to the 'invert to state machine' magic of async, does async code just tend to compile much slower than regular Rust code? This is slightly concerning, as async tends to 'infect' in that once part of a crate goes async, it tends to force other parts of the crate to go async.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.