daxpedda/sentry-contrib-native

Created Dec 23, 2020 · View the daxpedda/sentry-contrib-native repository page

Unofficial bindings to the Sentry Native SDK for Rust.

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

3

Lines of Code

813

From

Jun 8, 2020

To

Aug 21, 2020

About daxpedda/sentry-contrib-native

This is an unofficial Rust wrapper around Sentry's Native SDK, enabling Rust applications to send crash reports to Sentry even when the application crashes. Unlike the official Sentry SDK for Rust, which only handles panics, this crate leverages Sentry's C/C++ Native SDK to capture actual process crashes and send them to Sentry for analysis.

The crate supports multiple crash handling backends (Crashpad, Breakpad, and InProc) and transport mechanisms, with sensible defaults for each platform. On Linux, macOS, and Windows, it uses Crashpad by default and automatically copies the Crashpad handler executable to the build output directory for convenience. The implementation requires CMake for building, as it depends on the Sentry Native SDK, though pre-built versions can be provided via environment variables.

Note that this crate has been deprecated in favor of the pure Rust alternative crash-handler crate. The project is tested on Linux, macOS, and Windows, and is dual-licensed under Apache License 2.0 and MIT.

Share this video