Rocket/examples/tls/src/main.rs

16 lines
278 B
Rust
Raw Normal View History

#![feature(plugin, decl_macro, proc_macro_non_items)]
#![plugin(rocket_codegen)]
#[macro_use] extern crate rocket;
#[cfg(test)] mod tests;
#[get("/")]
fn hello() -> &'static str {
"Hello, world!"
}
fn main() {
rocket::ignite().mount("/", routes![hello]).launch();
}