From 9c2fcae892b6714165625c52b45be2526bfca68d Mon Sep 17 00:00:00 2001 From: Jasper den Hertog Date: Wed, 12 Jun 2024 15:27:35 +0200 Subject: [PATCH] behind feature flag --- src/bgp/nlri/common.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bgp/nlri/common.rs b/src/bgp/nlri/common.rs index efecce7..e0ee295 100644 --- a/src/bgp/nlri/common.rs +++ b/src/bgp/nlri/common.rs @@ -1,10 +1,12 @@ use octseq::{Octets, OctetsBuilder, Parser}; -use bincode::{Decode, Encode}; use crate::util::parser::ParseError; use inetnum::addr::Prefix; use super::afisafi::Afi; +#[cfg(feature = "bincode")] +use bincode::{Decode, Encode}; + use std::net::{Ipv4Addr, Ipv6Addr}; use std::fmt;