1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
//! # The Bugsnag api //! //! This crate provides an interface for reporting messages to Bugsnag. //! //! # Example //! //! ``` //! use bugsnag; //! let mut api = bugsnag::Bugsnag::new("api-key", env!("CARGO_MANIFEST_DIR")); //! //! // setting the appinfo is not required, but recommended //! api.set_app_info(Some(env!("CARGO_PKG_VERSION")), //! Some("development"), //! Some("rust")); //! //! api.notify("Info", "This is a message from the rust bugsnag api.", //! bugsnag::Severity::Info, None, None); //! ``` //! //! For more examples on how to integrate bugsnag into a project, the examples //! folder provides some reference implementations. #[macro_use] extern crate serde_derive; extern crate serde; extern crate serde_json; extern crate serde_test; extern crate backtrace; extern crate hyper; extern crate sys_info; mod event; mod notification; mod stacktrace; mod exception; mod bugsnag_impl; pub use self::bugsnag_impl::*; mod deviceinfo; mod appinfo; pub mod panic;