summaryrefslogtreecommitdiff
path: root/src
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 /src
parent62ef4122f60825f4868c982c6a45900545c817bf (diff)
fix `Serialize` and `Deserialize` derives failing when use-serde is enabledHEAD0.1.1no-gods-no-
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
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;