Switched to tokio and added webserver

This commit is contained in:
2025-04-16 16:28:45 +02:00
parent 9a26dad304
commit eb39b09632
5 changed files with 1521 additions and 19 deletions

11
src/webserver.rs Normal file
View File

@@ -0,0 +1,11 @@
use rocket::{get, routes};
pub async fn start_webserver() -> Result<(), rocket::Error> {
rocket::build().mount("/", routes![index]).launch().await?;
Ok(())
}
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}