Use rocket

This commit is contained in:
Joscha 2020-11-24 23:02:27 +00:00
parent 18fe764992
commit 54928688cd
3 changed files with 799 additions and 2 deletions

View file

@ -1,3 +1,12 @@
fn main() {
println!("Hello, world!");
#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use] extern crate rocket;
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}
fn main() {
rocket::ignite().mount("/", routes![index]).launch();
}