Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ indenter = "0.3.0"
once_cell = "1.18.0"
owo-colors = "4.0"
autocfg = "1.0"
anstream = "0.6.15"

[profile.dev.package.backtrace]
opt-level = 3
Expand Down
1 change: 1 addition & 0 deletions color-eyre/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ owo-colors = { workspace = true }
color-spantrace = { version = "0.3", path = "../color-spantrace", optional = true }
once_cell = { workspace = true }
url = { version = "2.1.1", optional = true }
anstream = { workspace = true }

[dev-dependencies]
tracing-subscriber = { version = "0.3.0", features = ["env-filter"] }
Expand Down
7 changes: 4 additions & 3 deletions color-eyre/examples/theme.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
use color_eyre::{config::Theme, eyre::Report, owo_colors::style, Section};
use color_eyre::{config::Theme, eyre::Report, Section};
use owo_colors::Style;

/// To experiment with theme values, edit `theme()` below and execute `cargo run --example theme`
fn theme() -> Theme {
Theme::dark()
// ^ use `new` to derive from a blank theme, or `light` to derive from a light theme.
// Now configure your theme (see the docs for all options):
.line_number(style().blue())
.help_info_suggestion(style().red())
.line_number(Style::new().blue())
.help_info_suggestion(Style::new().red())
}

#[derive(Debug, thiserror::Error)]
Expand Down
Loading
Loading