Tokio app as windows service


I have this web server written using warp which is built upon tokio.

So the entry point is currently:

async fn main() -> Result<()> { // using anyhow::Result
// ...

On windows, I need to turn that into a Windows Service, and I know very few on the subject.

I found 2 crates to manage this:

windows-service hasn't release for a year so it's a no go for my company.
But either way, both crates show example with a "normal" main function (without tokio::main annotation).

How do I use ceviche with a tokio based app?

1 Like

I think I found how:

1 Like


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.