We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6c8715 + 2ff23c1 commit 7db7c86Copy full SHA for 7db7c86
crates/ra_prof/Cargo.toml
@@ -11,7 +11,7 @@ doctest = false
11
[dependencies]
12
once_cell = "1.3.1"
13
itertools = "0.8.2"
14
-backtrace = "0.3.44"
+backtrace = { version = "0.3.44", optional = true }
15
16
[target.'cfg(not(target_env = "msvc"))'.dependencies]
17
jemallocator = { version = "0.3.2", optional = true }
crates/ra_prof/src/lib.rs
@@ -315,6 +315,7 @@ fn idx_to_children(msgs: &[Message]) -> Vec<Vec<usize>> {
315
}
316
317
/// Prints backtrace to stderr, useful for debugging.
318
+#[cfg(feature = "backtrace")]
319
pub fn print_backtrace() {
320
let bt = backtrace::Backtrace::new();
321
eprintln!("{:?}", bt);
0 commit comments