Skip to content

Commit

Permalink
feat(color-eyre): add default 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 c18fdf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion color-eyre/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ readme = { workspace = true }
rust-version = { workspace = true }

[features]
default = ["track-caller", "capture-spantrace"]
default = ["track-caller", "capture-spantrace", "export-owo-colors"]
capture-spantrace = ["tracing-error", "color-spantrace"]
issue-url = ["url"]
track-caller = []
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(feature = "export-owo-colors")]
pub use owo_colors;
use section::help::HelpInfo;
#[doc(hidden)]
Expand Down

0 comments on commit c18fdf4

Please sign in to comment.