From 135e2a3b9af422d9a9dc37ce7c69354c9b36e94b Mon Sep 17 00:00:00 2001 From: David Barsky Date: Sat, 2 May 2020 14:11:58 -0400 Subject: [PATCH] Deprecate failure. (#347) --- Cargo.toml | 5 ++++- README.md | 6 ++++++ failure_derive/Cargo.toml | 5 ++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0e28845..038eaff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,8 +6,8 @@ homepage = "https://rust-lang-nursery.github.io/failure/" license = "MIT OR Apache-2.0" name = "failure" repository = "https://github.com/rust-lang-nursery/failure" -version = "0.1.7" +version = "0.1.8" [dependencies.failure_derive] optional = true version = "0.1.7" @@ -20,6 +20,9 @@ version = "0.3.3" [workspace] members = [".", "failure_derive"] +[badges] +maintenance = { status = "deprecated" } + [features] default = ["std", "derive"] #small-error = ["std"] diff --git a/README.md b/README.md index 56df9a2..0def985 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # failure - a new error management story +**Notice**: `failure` is deprecated. If you liked `failure`'s API, consider using: +- [Anyhow](https://github.com/dtolnay/anyhow) is a good replacement for `failure::Error`. +- [thiserror](https://github.com/dtolnay/thiserror) is a good, near drop-in replacement for `#[derive(Fail)]`. + +--- + [![Build Status](https://travis-ci.org/rust-lang-nursery/failure.svg?branch=master)](https://travis-ci.org/rust-lang-nursery/failure) [![Latest Version](https://img.shields.io/crates/v/failure.svg)](https://crates.io/crates/failure) [![docs](https://docs.rs/failure/badge.svg)](https://docs.rs/failure) diff --git a/failure_derive/Cargo.toml b/failure_derive/Cargo.toml index 497ae9c..c507762 100644 --- a/failure_derive/Cargo.toml +++ b/failure_derive/Cargo.toml @@ -6,7 +6,7 @@ name = "failure_derive" repository = "https://github.com/rust-lang-nursery/failure" homepage = "https://rust-lang-nursery.github.io/failure/" documentation = "https://docs.rs/failure" -version = "0.1.7" +version = "0.1.8" build = "build.rs" [dependencies] @@ -19,6 +19,9 @@ proc-macro2 = "1" version = "0.1.0" path = ".." +[badges] +maintenance = { status = "deprecated" } + [lib] proc-macro = true