()
| 217 | |
| 218 | #[cfg(feature = "backtrace")] |
| 219 | pub fn supports_backtrace() -> bool { |
| 220 | static STATE: LazyLock<bool> = LazyLock::new(|| { |
| 221 | let bt = std::backtrace::Backtrace::capture(); |
| 222 | bt.status() == std::backtrace::BacktraceStatus::Captured |
| 223 | }); |
| 224 | |
| 225 | *STATE |
| 226 | } |
| 227 | |
| 228 | #[cfg(feature = "spantrace")] |
| 229 | pub fn supports_spantrace() -> bool { |
no outgoing calls
no test coverage detected