eyre-rs / color-eyre

Custom hooks for colorful human oriented error reports via panics and the eyre crate
Other
958 stars 57 forks source link

Wrap types so we don't have to re-export `owo_colors` #150

Open jssblck opened 6 months ago

jssblck commented 6 months ago

Hey there! I read https://github.com/eyre-rs/color-eyre/issues/109, and understand why owo_colors is re-exported, but the original author is quite correct that it makes completions really noisy. They were using IntelliJ, but I'm using VS Code with Rust Analyzer and it has this same issue.

Would you accept a PR that newtype-wraps all the owo_colors bits so that it doesn't have to be re-exported?

I'm envisioning, for example:

And so on.

belakm commented 5 months ago

I second this :+1: developer experience with unrelated auto-suggestions is unpleasant

the alternative i took at the moment is going back to eyre crate

FlareFlo commented 3 months ago

Alternatively, the re-export could be feature gated, optionally disabling it when unneeded.