[](https://travis-ci.org/superscale/bugsnag-rs)
[](https://coveralls.io/github/superscale/bugsnag-rs?branch=master)
[](https://crates.io/crates/bugsnag)
[](./LICENSE-MIT)
[](https://docs.rs/bugsnag)
# bugsnag-rs
The Bugsnag api in rust.
# Example
```rust
use bugsnag;
let mut api = bugsnag::Bugsnag::new("api-key", Some(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"));
let stacktrace = bugsnag::stacktrace::create_stacktrace(api.get_project_source_dir());
api.notify("Info", "This is a message from the rust bugsnag api.",
bugsnag::Severity::Info, &stacktrace, None);
```
For more examples on how to integrate bugsnag into a project, the examples folder provides some reference implementations.
# Which json fields are missing?
- metaData
- user
- groupingHash
The structure of the json can be found [here](https://docs.bugsnag.com/api/error-reporting/).