1
0
Fork 0

Add web server

This commit is contained in:
Alex Kotov 2020-10-14 04:40:03 +05:00
parent 4142c72467
commit e5fa79bb83
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

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();
}