make async-backtrace optional

This commit is contained in:
Igor Katson 2024-08-19 13:40:01 +01:00
parent 17353cf8e1
commit e4aac7930f
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
4 changed files with 44 additions and 21 deletions

View file

@ -25,6 +25,19 @@
#![warn(clippy::cast_possible_truncation)]
macro_rules! aframe {
($e:expr) => {{
#[cfg(feature = "async-bt")]
{
async_backtrace::frame!($e)
}
#[cfg(not(feature = "async-bt"))]
{
$e
}
}};
}
pub mod api;
mod api_error;
mod chunk_tracker;