PackageTrack
Sign in Get early access

color-backtrace

Colorful panic backtraces

0.7.4 4.1M downloads/mo #4960 most downloaded on crates.io athre0z/color-backtrace

What this package is like to depend on

Last release 22 days ago

01 Aug 2026

Release timing varies

gaps range from 2 weeks to 2.3 years

Most releases are documented

notes for 16 of 20 stable releases

1 version withdrawn

withdrawn after publishing

7 years old

21 releases · first in 2019

4 releases in the last 12 months

see the full history below

Release timeline

21 releases · Apr 2019 to Aug 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 21
  1. 0.7.4 01 Aug 2026
    Release notes

    Keeps rust-version from silently drifting out of date again.

    Open source →
    Release notes
    • Restore Frame::is_dependency_code, accidentally removed in v0.7.3
      • It now simply forwards to default_is_dependency_frame
    • Correct rust-version to 1.81
      • 1.81 has been the de-facto minimum since v0.7.1, which started using lint reasons; the manifest still claimed 1.70
    Open source →
  2. 0.7.3 05 Apr 2026 withdrawn
    Release notes
    • Support custom dependency filtering functions
      • New BacktracePrinter::dependency_predicate, IsDependencyCallback and default_is_dependency_frame
    • Yanked: also removed Frame::is_dependency_code, breaking semver
    Open source →
  3. 0.7.2 28 Oct 2025
    Release notes
    • Fix dependency detection when running on Windows
    Open source →
  4. 0.7.1 30 Aug 2025
    Release notes

    Added

    • Support for NO_COLOR and FORCE_COLOR environment variables for controlling color output
    • New public function default_color_choice() to get color choice based on environment variables and terminal detection

    Changed

    • default_output_stream() now respects NO_COLOR and FORCE_COLOR environment variables
    Open source →
  5. 0.7.0 09 Feb 2025
    Release notes

    Remove gimli-symbolize crate feature

    Open source →
    Release notes
    • Add Backtrace trait to abstract over backtrace implementation
    • Changed Frame::ip type usize -> Option<usize>
    • BacktracePrinter::print_trace now takes &dyn Backtrace instead of &backtrace::Backtrace
      • This may be API breaking when users use default-features = false so that &backtrace::Backtrace doesn't coerce to &dyn Backtrace
    • Add experimental support for std::backtrace::Backtrace
      • Enable via { default-features = false, features = ["use-btparse-crate"] }
    • Removed previously deprecated gimli-symbolize crate feature
    Open source →
  6. 0.6.1 22 Oct 2023
    Release notes
    • Publicly expose some helper methods on Frame type
    Open source →
  7. 0.6.0 30 Jul 2023
    Release notes
    • Replace unmaintained atty crate with std::io::IsTerminal
    • Minimum supported Rust version raised to 1.70 (hence the bump to 0.6)
    Open source →
  8. 0.5.1 25 Apr 2021
    Release notes

    Update CHANGELOG, bump version

    Open source →
    Release notes
    • Add the ability to print module_name:offset, or address of frame
      • Contributed by [@s1341], thanks!
    Open source →
  9. 0.5.0 21 Nov 2020
    Release notes
    • Add __rust_begin_short_backtrace filter
    • Remove experimental failure support
    Open source →
  10. 0.4.2 19 May 2020
    Release notes

    Added

    • Clone and Debug impls for BacktracePrinter
    • COLORBT_SHOW_HIDDEN env variable, disabling frame filtering
    Open source →
  11. 0.4.1 08 May 2020
    Release notes

    Fixed

    • Use correct verbosity level for string formatting
    • Fix off-by-one in frame hiding code
      • Hides one additional post-panic frame
    • Slightly improved doc
    Open source →
  12. 0.4.0 06 May 2020
    Release notes

    Added

    • BacktracePrinter::format_trace_to_string
    • Ability to add custom frame filter callbacks
      • BacktracePrinter::add_frame_filter
      • BacktracePrinter::clear_frame_filters
      • default_frame_filter
      • Thanks to [@yaahc] for helping out with this!
    • Prefer RUST_LIB_BACKTRACE env var when determining the default verbosity to print non-panic backtraces
      • Also contributed by [@yaahc]

    Changed

    • Rename SettingsBacktracePrinter
    • Move print_backtraceBacktracePrinter::print_trace
    • Move print_panic_infoBacktracePrinter::print_panic_info
    • Move color_backtrace::failure::print_backtraceBacktracePrinter::print_failure_trace
    • The majority of old APIs have deprecated shims that forward calls to their new place to ease porting
    • The out setting is no longer part of the BacktracePrinter and instead supplied as an argument to all functions that need it
      • The previous design forced Sync + Send + 'static constraints on any output stream since they are required when registering the panic handler, but are unnecessary when printing to strings
      • As a bonus, all format and print functions no longer require mutable access to the BacktracePrinter instance
    Open source →
  13. 0.3.0 12 Nov 2019
    Release notes

    Added

    • Custom ColorScheme support
    • Forward backtrace-rs' gimli-symbolize feature, which is default enabled
      • This is done by adding default-features = false to the Cargo.toml dependency entry for color-backtrace
      • Disabling it reduces transitive dependencies from ~50 → ~10
      • However, you'll pay for it with inaccurate source info on macOS and Linux

    Changed

    • Replace term crate for colorful term printing with termcolor
      • This crate is more actively maintained, has fewer deps and a better API
      • This made adding color scheme support very easy
    • Settings::dim_function_hash_part was replaced
      • Hash part color is now controlled via ColorScheme

    Removed

    • Colorize, ColorizedStderrOutput, StreamOutput, PanicOutputStream
      • This functionality is now all provided by the termcolor crate
      • termcolor is re-exported in the root of color_backtrace
    • Lots of transitive dependencies!
    Open source →
  14. 0.2.3 23 Aug 2019
    Release notes

    Changed

    • Added post panic frame rules for [failure]
    • Updated term dependency
    Open source →
  15. 0.2.2 29 Jun 2019
    Release notes

    Added

    • Experimental support for [failure] error backtraces
      • Contributed by Jane Lusby ([@yaahc])

    Changed

    • Switch to [gimli] backend for backtraces on macOS and Linux
      • Fixes backtraces when invoking an app outside of its build directory
    • Expose print_backtrace and print_panic_info functions
    Open source →
  16. 0.2.1 25 Jun 2019
    Release notes

    Changed

    • Fixed panic then TERM env var is not found
    Open source →
  17. 0.2.0 22 Jun 2019
    Release notes

    Added

    • This changelog!
    • Customization via settings
    • Printing to streams other than stderr

    Changed

    • Improved {dependency code,post panic frame,runtime init} heuristics
    • Changed default panic message to be more professional
    • Relicensed from MIT to MIT/Apache-2.0 dual licensing
    • Moved get_verbosityVerbosity::from_env
    • Fix readability on light terminal themes
    • Fix deadlock when unwrapping an error while printing the panic
    • Many internal tweaks
    Open source →
  18. 0.1.3 21 Apr 2019

    Nothing published for this version

  19. 0.1.2 20 Apr 2019

    Nothing published for this version

  20. 0.1.1 18 Apr 2019

    Nothing published for this version

  21. 0.1.0 18 Apr 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive