Description: add feature fencing
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2025-01-23
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/library/src/jf2/profiles.rs
+++ b/library/src/jf2/profiles.rs
@@ -43,15 +43,18 @@
     FeedMissingUpdateTime,
 }
 
+#[cfg(feature = "atom_syndication")]
 #[derive(thiserror::Error, Debug)]
 pub struct AtomError(String);
 
+#[cfg(feature = "atom_syndication")]
 impl From<atom_syndication::Error> for AtomError {
     fn from(err: atom_syndication::Error) -> Self {
         Self(err.to_string())
     }
 }
 
+#[cfg(feature = "atom_syndication")]
 impl Display for AtomError {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         write!(f, "{}", self.0)
@@ -449,6 +452,7 @@
     }
 }
 
+#[cfg(feature = "atom_syndication")]
 fn extract_categories(value: Property) -> Result<Vec<atom_syndication::Category>, crate::Error> {
     value.into_list().into_iter().try_fold(
         Vec::default(),
