#[macro_use] extern crate rocket; use rocket::{Build, Rocket}; use rocket_sentry::RocketSentry; #[get("/panic?")] fn panic(msg: Option) -> String { panic!("{}", msg.unwrap_or("You asked for it!".to_string())); } #[launch] fn rocket() -> Rocket { rocket::build() .attach(RocketSentry::fairing()) .mount("/", routes![panic]) }