Is there a way to abort process on panic in tokio?

Tokio by default catches the panics. Is there a way to tell tokio not to do that?

Yes, this is possible, however it is not a Tokio option but a cargo option. You can configure it in your Cargo.toml like this:

[profile.dev]
panic = "abort"

[profile.release]
panic = "abort"

Read more here.

1 Like

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.