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
#![deny(missing_docs)]
mod integration;
mod parse;
mod process;
mod trim;
mod utils;
pub use crate::integration::{
current_thread, AttachStacktraceIntegration, ProcessStacktraceIntegration,
};
pub use crate::parse::parse_stacktrace;
pub use crate::process::{backtrace_to_stacktrace, process_event_stacktrace};
pub use crate::trim::trim_stacktrace;
pub use sentry_core::protocol::{Frame, Stacktrace};
pub fn current_stacktrace() -> Option<Stacktrace> {
backtrace_to_stacktrace(&backtrace::Backtrace::new())
}