http-rs / http-types

Common types for HTTP operations
https://docs.rs/http-types
Apache License 2.0
200 stars 83 forks source link

crate: add features to switch Error backend #263

Open Fishrock123 opened 3 years ago

Fishrock123 commented 3 years ago

Allows end users to choose between anyhow and eyre.

If using eyre, it is up to the application author to install an eyre reporter themselves.

This is an updated rebase of https://github.com/http-rs/http-types/pull/215, with some notable changes:

A concern: adding error_anyhow could break people using default-features = false.

Fishrock123 commented 3 years ago

Upon slightly further investigation - I think Tide may need to hook into this more manually in it's logger (or in any custom logger). More investigation is needed.