chridou / http-api-problem

A problem type to be returned by HTTP APIs
Apache License 2.0
53 stars 12 forks source link

Failure should be optional #22

Closed chridou closed 4 years ago

chridou commented 4 years ago

Not everybody uses the failure crate. If failure is not enabled, both HttpApiProblem and ApiError should implement std::error::Error. Otherwise both should implement failure::Fail.

Before merge this should also include https://github.com/chridou/http-api-problem/issues/16.