From eb9b04433f903818e49a86544ebca4d6a36c1a07 Mon Sep 17 00:00:00 2001 From: Steven Salaun Date: Mon, 8 Aug 2022 14:17:23 +0200 Subject: [PATCH] fix build for serde_support feature --- src/rfc.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rfc.rs b/src/rfc.rs index d55bc74..7d8c319 100644 --- a/src/rfc.rs +++ b/src/rfc.rs @@ -2,6 +2,9 @@ use crate::Algorithm; use crate::TotpUrlError; use crate::TOTP; +#[cfg(feature = "serde_support")] +use serde::{Deserialize, Serialize}; + /// Data is not compliant to [rfc-6238](https://tools.ietf.org/html/rfc6238) #[derive(Debug, Eq, PartialEq)] pub enum Rfc6238Error {