Make the serde dependency optional

This commit is contained in:
Linus Färnstrand
2019-12-10 09:13:44 +01:00
parent e1f8566301
commit fa5deed40b
5 changed files with 26 additions and 20 deletions

View File

@ -1,3 +1,5 @@
#![cfg(feature = "serde")]
#[cfg(test)]
mod tests {
use ipnetwork::{IpNetwork, Ipv4Network, Ipv6Network};