Skip to content

Commit

Permalink
feat(color-eyre): add no-export-owo-colors feature
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
0xAdk committed Jul 31, 2024
1 parent e5d92c3 commit 4364ed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions color-eyre/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ default = ["track-caller", "capture-spantrace"]
capture-spantrace = ["tracing-error", "color-spantrace"]
issue-url = ["url"]
track-caller = []
no-export-owo-colors = []

[dependencies]
eyre = "0.6.1"
Expand Down
1 change: 1 addition & 0 deletions color-eyre/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ pub use eyre;
pub use eyre::Report;
#[doc(hidden)]
pub use eyre::Result;
#[cfg(not(feature = "no-export-owo-colors"))]
pub use owo_colors;
use section::help::HelpInfo;
#[doc(hidden)]
Expand Down

0 comments on commit 4364ed9

Please sign in to comment.