From f997b427899821b963d7ac079260b21d6dc7b0af Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 25 Jul 2021 00:52:21 -0700 Subject: fix `Serialize` and `Deserialize` derives failing when use-serde is enabled --- CHANGELOG | 4 ++++ Cargo.toml | 2 +- src/lib.rs | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 6983dd8..7d115f1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +# 0.1.1 + +fix `Serialize` and `Deserialize` macros not being present when `use-serde` feature is selected + # 0.1.0 update yaxpeax-arch to 0.2.3, fix some API differences diff --git a/Cargo.toml b/Cargo.toml index a9bbc7a..88bd433 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "yaxpeax-pic18" -version = "0.1.0" +version = "0.1.1" authors = [ "iximeow " ] license = "0BSD" repository = "http://git.iximeow.net/yaxpeax-pic18/" diff --git a/src/lib.rs b/src/lib.rs index de012be..7ea285a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,8 @@ use yaxpeax_arch::{Arch, AddressDiff, Decoder, LengthedInstruction, Reader, StandardDecodeError}; +#[cfg(feature="use-serde")] +#[macro_use] extern crate serde_derive; + pub mod consts; pub mod display; -- cgit v1.1