summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-07-25 00:52:21 -0700
committeriximeow <me@iximeow.net>2021-07-25 00:52:21 -0700
commitf997b427899821b963d7ac079260b21d6dc7b0af (patch)
tree1a8add6d3d3070682e9bda61a54166512fa96482
parent62ef4122f60825f4868c982c6a45900545c817bf (diff)
fix `Serialize` and `Deserialize` derives failing when use-serde is enabledHEAD0.1.1no-gods-no-
-rw-r--r--CHANGELOG4
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs3
3 files changed, 8 insertions, 1 deletions
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 <me@iximeow.net>" ]
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;