From 1b32a7742c99ea6e52b8b44a1078f8973d8e0151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20H=C3=B6ner?= Date: Sun, 22 Oct 2023 23:03:53 +0200 Subject: [PATCH] Mark `gimli-symbolize` feature as deprecated The backtrace library no longer supports swapping the symbolization library and always picks gimli (indirectly via addr2line crate). gimli also has a lot fewer dependencies these days. --- Cargo.toml | 6 ++++-- README.md | 15 --------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index acc5979..0398a29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,10 +18,12 @@ keywords = [ ] [features] -default = ["gimli-symbolize"] -gimli-symbolize = ["backtrace/gimli-symbolize"] +default = [] resolve-modules = ["regex"] +# Deprecated, no longer has any effect: backtrace crate removed corresponding option. +gimli-symbolize = [] + [dependencies] termcolor = "1.1.2" backtrace = "0.3.57" diff --git a/README.md b/README.md index 17114e0..fd30b7b 100644 --- a/README.md +++ b/README.md @@ -41,21 +41,6 @@ BacktracePrinter::new().message("Custom message!").install(default_output_stream - Hide all the frames after the panic was already initiated - Hide language runtime initialization frames -### Reducing transitive dependencies - -In order to reduce transitive dependencies, you can disable the default -enabled `gimli-symbolize` feature by adding a `default-features = false` -clause to your `Cargo.toml` dependency entry, e.g.: - -```toml -[dependencies] -color-backtrace = { version = "0.6", default-features = false } -``` - -This will reduce dependencies from ~50 → ~10. However, you'll pay for it with -[inaccurate source info](https://github.com/athre0z/color-backtrace/issues/2) -on macOS and Linux - ### Usage in tests Unfortunately, defining custom init functions run before tests are started is