Oddbean new post about | logout
 @bf55f1f1 The Cargo.toml will not necessarily tell you about that if the feature "full" in Tokio was used. One needs to check where the runtime is spawned (noramally at the main function). The multithreaded version is the default. Otherwise you would see this explicit annotation:

#[tokio::main(flavor = "current_thread")]

I am sorry if I am missing something, but I don't get how the runtime that you normally start yourself (for example in Axum) is hidden. 
 @5150cec1 you're right. I was of the opinion that it would choose the runtime based on the activated features, which isn't the case.

Then people "just" need to know what `#[tokio::main]` does. Not that much of an issue, but still more implicit than I'd like to. 
 @bf55f1f1 Basically syntax sugar for the default use case. But you can do it manually and even have more control if you want:

https://codeberg.org/mo8it/oxi-axum-helpers/src/commit/3886ca460032ac47a0f88582abe507094166f743/src/runner.rs#L10