make async-backtrace optional
This commit is contained in:
parent
17353cf8e1
commit
e4aac7930f
4 changed files with 44 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue