https://github.com/embarkstudios/crash-handling
Collection of crates to deal with crashes
https://github.com/embarkstudios/crash-handling
crash-reporting ipc minidump rust
Last synced: about 2 months ago
JSON representation
Collection of crates to deal with crashes
- Host: GitHub
- URL: https://github.com/embarkstudios/crash-handling
- Owner: EmbarkStudios
- License: apache-2.0
- Created: 2021-11-08T13:54:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T12:45:56.000Z (10 months ago)
- Last Synced: 2025-04-12T23:42:18.752Z (about 2 months ago)
- Topics: crash-reporting, ipc, minidump, rust
- Language: Rust
- Homepage:
- Size: 403 KB
- Stars: 146
- Watchers: 8
- Forks: 14
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# `🔥 crash-handling`
**Set of utility crates for catching and handling crashes**
[](https://embark.dev)
[](https://discord.gg/dAuKfZS)
[](https://github.com/EmbarkStudios/crash-handling/actions)## Crates
Name | Description | crates.io | docs.rs
--- | --- | --- | ---
[`crash-context`](crash-context) | Provides portable types containing target specific contextual information at the time of a crash | [](https://crates.io/crates/crash-context) | [](https://docs.rs/crash-context)
[`sadness-generator`](sadness-generator) | Provides various ways to make your program sad | [](https://crates.io/crates/sadness-generator) | [](https://docs.rs/sadness-generator)
[`crash-handler`](crash-handler) | Provides a crash handler to invoke a user supplied callback with the contextual information of a crash | [](https://crates.io/crates/crash-handler) | [](https://docs.rs/crash-handler)
[`minidumper`](minidumper) | Provides an IPC client and server for creating minidumps for an external process | [](https://crates.io/crates/minidumper) | [](https://docs.rs/minidumper)## Notable external crate
[`minidump-writer`](https://github.com/rust-minidump/minidump-writer) does the heavy lifting of inspecting a crashed process and writing a [minidump](https://github.com/rust-minidump/rust-minidump) for it. This is used by the [`minidumper::Service`](https://docs.rs/minidumper/latest/minidumper/struct.Server.html) to write a minidump to the user specified location when a [`minidumper::Client`](https://docs.rs/minidumper/latest/minidumper/struct.Client.html) detects a crash and requests a dump be created.
## Supported targets
| Arch | unknown-linux-gnu | unknown-linux-musl | linux-android | pc-windows-msvc | apple-darwin
--- | --- | --- | --- | --- | ---
`x86_64` | ✅ | ✅ | ❌ | ✅ | ✅
`i686` | ✅ | ✅ | ❌ | ❌ | ❌ |
`arm` | ✅ | ✅ | ✅ | ❌ | ❌
`aarch64` | ✅ | ✅ | ✅ | ❌ | ✅## Contribution
[](CODE_OF_CONDUCT.md)
We welcome community contributions to this project.
Please read our [Contributor Guide](CONTRIBUTING.md) for more information on how to get started.
Please also read our [Contributor Terms](CONTRIBUTING.md#contributor-terms) before you make any contributions.Any contribution intentionally submitted for inclusion in an Embark Studios project, shall comply with the Rust standard licensing model (MIT OR Apache 2.0) and therefore be dual licensed as described below, without any additional terms or conditions:
### License
This contribution is dual licensed under EITHER OF
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or )
- MIT license ([LICENSE-MIT](LICENSE-MIT) or )at your option.
For clarity, "your" refers to Embark or any other licensee/user of the contribution.