Add Hello, world!
Rocket
This commit is contained in:
parent
0b57113e7f
commit
822cf5b037
5 changed files with 834 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
#![feature(proc_macro_hygiene, decl_macro)]
|
||||
|
||||
use rocket::{get, routes};
|
||||
|
||||
#[get("/")]
|
||||
fn index() -> &'static str {
|
||||
"Hello, world!"
|
||||
}
|
||||
|
||||
fn main() {
|
||||
rocket::ignite().mount("/", routes![index]).launch();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue