diff options
author | iximeow <me@iximeow.net> | 2021-07-21 00:16:57 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-07-21 00:16:57 -0700 |
commit | 82bac0e0e2ceebf15b3a70ab0908ffa9df2d0276 (patch) | |
tree | cd3e0d1cffd4e29960723461d09db0347d72ffe0 | |
parent | 210e8d9c682524018b240565465a60f65c288e5d (diff) |
fix incorrect changelog entry, DecodeError impl for yaxpeax_arch+std0.2.1
-rw-r--r-- | CHANGELOG | 11 | ||||
-rw-r--r-- | Cargo.toml | 8 | ||||
-rw-r--r-- | src/lib.rs | 10 |
3 files changed, 26 insertions, 3 deletions
@@ -1,9 +1,16 @@ -## 0.1.4 +## 0.2.1 -update yaxpeax-arch to drop a dependency on termion +* fix incorrect `yaxpeax_arch::Arch` impl for `std`-enabled builds + (DecodeError did not implement `std::error::Error` in those build environments) + +## 0.2.0 update yaxpeax-arch to 0.2.x, involving a breaking change to decode APIs (sorry) +## 0.1.4 + +update yaxpeax-arch to drop a dependency on termion + ## 0.1.3 transpose Table 4-43 to fix decoding of `srlz.i` @@ -1,6 +1,6 @@ [package] name = "yaxpeax-ia64" -version = "0.2.0" +version = "0.2.1" authors = ["iximeow <me@iximeow.net>"] edition = "2018" license = "0BSD" @@ -11,3 +11,9 @@ readme = "README.md" [dependencies] yaxpeax-arch = { version = "0.2.2", default-features = false, features = [] } bitvec = "0.19" + +[features] +default = ["std"] + +# opt-in for std-related Error impl - necessary to `?`-unwrap `DecodeError`. +std = [] @@ -1386,6 +1386,16 @@ impl yaxpeax_arch::DecodeError for DecodeError { } } } + +#[cfg(feature = "std")] +extern crate std; +#[cfg(feature = "std")] +impl std::error::Error for DecodeError { + fn description(&self) -> &str { + <Self as yaxpeax_arch::DecodeError>::description(self) + } +} + #[derive(Default)] pub struct InstDecoder {} |