17 lines
242 B
Rust
17 lines
242 B
Rust
#![feature(proc_macro_hygiene, decl_macro)]
|
|
|
|
#[macro_use]
|
|
extern crate rocket;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
#[get("/")]
|
|
fn index() -> &'static str {
|
|
"Hello, ldap0r!"
|
|
}
|
|
|
|
fn main() {
|
|
rocket::ignite().mount("/", routes![index]).launch();
|
|
}
|