# Send Rust errors, logs and traces to Flare
[](https://github.com/spatie/flare-client-rust/actions/workflows/ci.yml)
This repository contains the Rust client for [Flare](https://flareapp.io). It sends errors, panics, logs and traces to Flare, and works with Rust 1.94 and newer.
## Installation
```toml
[dependencies]
flareapp = "0.2"
```
Set `FLARE_KEY` to the API key of your Flare project, in the environment or in a `.env` file. Without a key, Flare is disabled.
```rust
#[flareapp::main]
fn main() {
// Flare reports panics, and errors that `main` returns.
}
```
Turn on a feature for each integration that you use: `tracing`, `log`, `tower`, `axum`, `actix`, `reqwest`, `sqlx-postgres`, `sqlx-mysql`, `sqlx-sqlite` or `anyhow`.
## Documentation
The documentation can be found [here](https://flareapp.io/docs/rust/getting-started/quick-start). If you rather read the crate documentation, you can read it on [docs.rs](https://docs.rs/flareapp).
## Testing
```bash
cargo test
```
## Contributing
Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email support@flareapp.io instead of using the issue tracker.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.