From 288ab8fa823d2fbe567e60253c8bad9b2c9b7fd4 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 3 Jul 2021 21:55:23 -0700 Subject: support std::error::Error included is mandataing a `description` method on `DecodeError` implementors - already approximately required by the Debug and Display anyway. also include a StandardPartialDecoderError for incomplete decoders to use. i expect that one of the last steps of a decoder's 1.0 release will be to move away from this. --- Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index cb49e90..7674eb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,11 +15,17 @@ version = "0.0.5" "serde" = { version = "1.0", optional = true } "serde_derive" = { version = "1.0", optional = true } +[dev-dependencies] +"anyhow" = "*" +"thiserror" = "*" + [profile.release] lto = true [features] -default = ["use-serde", "colors", "address-parse"] +default = ["std", "use-serde", "colors", "address-parse"] + +std = [] # enables the (optional) use of Serde for bounds on # Arch and Arch::Address -- cgit v1.1