cpal/src
mitchmindtree d9d4a906c9 Switch to dtolnay's `thiserror` for handling error boilerplate
Currently CPAL only really uses `failure` for its `derive` capabilities
and the ability to easily generate implementations for `Display`. That
said there are a few issues with using the `failure` crate:

- `failure` does not provie a `std::error::Error` implementation without
  first converting error types into `failure::Error`.
- It leaks significantly into the public API and expects downstream
  users to also depend on `failure` and the non-std `Fail` trait for
  their own error handling.
- Solved problems such as downcasting of causal errors which have since
  been addressed in `std`.
- Provides application-friendly `Fail` trait and `failure::Error` type,
  not particularly useful to libraries like CPAL.

The [`thiserror` crate](https://github.com/dtolnay/thiserror) is better
targeted towards libraries, does not leak into the public API while
providing easy generation of `Display`, `From` and `std::error::Error`
implementations including proper handling of the newish
`std::error::Error::source` method.
2019-10-13 12:29:21 +02:00
..
host Fix clippy 2019-10-04 11:54:11 +02:00
platform Add name to HostId 2019-07-18 09:46:50 +09:00
error.rs Switch to dtolnay's `thiserror` for handling error boilerplate 2019-10-13 12:29:21 +02:00
lib.rs Switch to dtolnay's `thiserror` for handling error boilerplate 2019-10-13 12:29:21 +02:00
samples_formats.rs Add samples conversion functions and publish 0.5.1 (#170) 2017-10-21 09:45:02 +02:00
traits.rs Add missing `Hash` constraint to `StreamId` 2019-07-05 19:28:34 +02:00