diff --git a/color-eyre/Cargo.toml b/color-eyre/Cargo.toml index 145fb17..926f981 100644 --- a/color-eyre/Cargo.toml +++ b/color-eyre/Cargo.toml @@ -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" diff --git a/color-eyre/src/lib.rs b/color-eyre/src/lib.rs index 2664cad..a910711 100644 --- a/color-eyre/src/lib.rs +++ b/color-eyre/src/lib.rs @@ -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)]