#![cfg(feature = "with-serde")] #[test] fn test_serialization() { use num_format::{ Buffer, CustomFormat, CustomFormatBuilder, Error, ErrorKind, Grouping, Locale, }; use serde::{Deserialize, Serialize}; fn serializable() {} serializable::(); serializable::(); serializable::(); serializable::(); serializable::(); serializable::(); serializable::(); fn deserializable<'de, T: Deserialize<'de>>() {} deserializable::(); deserializable::(); deserializable::(); deserializable::(); deserializable::(); deserializable::(); deserializable::(); } #[cfg(feature = "with-system-locale")] #[test] fn test_serialization_system() { use num_format::SystemLocale; use serde::{Deserialize, Serialize}; fn serializable() {} serializable::(); fn deserializable<'de, T: Deserialize<'de>>() {} deserializable::(); }