File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
integrations/sentry-actix Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ documentation = "https://docs.rs/sentry-actix"
1010description = """
1111Sentry client extension for actix-web
1212"""
13- build = " build.rs"
1413
1514[dependencies ]
1615actix-web = " 0.6.13"
Original file line number Diff line number Diff line change 1212//! extern crate actix_web;
1313//! extern crate sentry;
1414//! extern crate sentry_actix;
15- //!
15+ //!
1616//! # fn main() {
1717//! use std::env;
1818//! use std::io;
19- //!
19+ //!
2020//! use actix_web::{server, App, Error, HttpRequest};
2121//! use sentry_actix::SentryMiddleware;
22- //!
22+ //!
2323//! fn failing(_req: HttpRequest) -> Result<String, Error> {
2424//! Err(io::Error::new(io::ErrorKind::Other, "An error happens here").into())
2525//! }
26- //!
26+ //!
2727//! fn main() {
2828//! let _guard = sentry::init("https://public@sentry.io/1234");
2929//! env::set_var("RUST_BACKTRACE", "1");
3030//! sentry::integrations::panic::register_panic_handler();
31- //!
31+ //!
3232//! server::new(|| {
3333//! App::new()
3434//! .middleware(SentryMiddleware::new())
You can’t perform that action at this time.
0 commit comments