Skip to content

Commit 4364ed9

Browse files
committed
feat(color-eyre): add no-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 4364ed9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

color-eyre/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ default = ["track-caller", "capture-spantrace"]
1616
capture-spantrace = ["tracing-error", "color-spantrace"]
1717
issue-url = ["url"]
1818
track-caller = []
19+
no-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(not(feature = "no-export-owo-colors"))]
368369
pub use owo_colors;
369370
use section::help::HelpInfo;
370371
#[doc(hidden)]

0 commit comments

Comments
 (0)