Skip to content

Upgrading failure_derive 0.0 to 0.1

Breaking0.0.1 → 0.1.8Breaking1Platform1Deprecated5New16Changed3Fixed6

BreakingUpgrade verdict

1 breaking change and a platform requirement change.

  • Conversions from standard errors now require the error type to be Send and Sync, which can break code whose error types are not.
  • You now need Rust 1.31.0 or newer to build this package.
  • Deprecates `Fail::causes` and `<dyn Fail>::causes` in favor of the newly added `<dyn Fail>::iter_causes`.
  • Deprecates `Fail::root_cause` and `<dyn Fail>::root_cause` in favor of the newly added `<dyn Fail>::find_root_cause`.
Top 5 of 7 that need code or config changes

Adds failure ^0.1.0, proc-macro2 ^1.

Installs 18 packages in all (was 5).

Breaking1
Changes the bounds on std error compat conversions through the From trait to take Sync and Send into account.
FromSyncSend
Platform1
Bumps the minimum supported Rust version (MSRV) to 1.31.0.
Deprecated5
Deprecates Fail::causes and <dyn Fail>::causes in favor of the newly added <dyn Fail>::iter_causes.
Fail::causes<dyn Fail>::causes<dyn Fail>::iter_causes
Deprecates Fail::root_cause and <dyn Fail>::root_cause in favor of the newly added <dyn Fail>::find_root_cause.
Fail::root_cause<dyn Fail>::root_cause<dyn Fail>::find_root_cause
Deprecates Error::cause in favor of the newly added Error::as_fail.
Error::causeError::as_fail
Deprecates Error::causes in favor of the newly added Error::iter_chain.
Error::causesError::iter_chain
Deprecates Error::root_cause in favor of the newly added Error::find_root_cause.
Error::root_causeError::find_root_cause