From 1c5c1f92d66a1bb622d2d02d4593c3b3d9b1f017 Mon Sep 17 00:00:00 2001 From: Jimmy Cuadra Date: Fri, 12 Apr 2019 03:54:28 -0700 Subject: [PATCH] Reintroduce macro_use for Diesel to import custom derives. --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 584e510e..353458b9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,6 +5,10 @@ #![deny(missing_docs)] #![deny(warnings)] +#[cfg(feature = "diesel")] +#[cfg_attr(feature = "diesel", macro_use)] +extern crate diesel; + use std::{ convert::TryFrom, error::Error as StdError,