Skip to content

Commit c18fdf4

Browse files
committed
feat(color-eyre): add default export-owo-colors feature
Reexporting `owo-colors` causes rust-analzyer's code completion to fill with many auto-use suggestions for the `owo-colors::OwoColorize` trait. This feature allows users to opt-out of reexporting `owo-colors`.
1 parent e5d92c3 commit c18fdf4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

color-eyre/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ readme = { workspace = true }
1212
rust-version = { workspace = true }
1313

1414
[features]
15-
default = ["track-caller", "capture-spantrace"]
15+
default = ["track-caller", "capture-spantrace", "export-owo-colors"]
1616
capture-spantrace = ["tracing-error", "color-spantrace"]
1717
issue-url = ["url"]
1818
track-caller = []
19+
export-owo-colors = []
1920

2021
[dependencies]
2122
eyre = "0.6.1"

color-eyre/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ pub use eyre;
365365
pub use eyre::Report;
366366
#[doc(hidden)]
367367
pub use eyre::Result;
368+
#[cfg(feature = "export-owo-colors")]
368369
pub use owo_colors;
369370
use section::help::HelpInfo;
370371
#[doc(hidden)]

0 commit comments

Comments
 (0)