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 --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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