From ec13cbb1f35081118dda0f7f35e3ef90f7ca79a8 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Sun, 18 Aug 2024 03:09:56 +0200 Subject: [PATCH] fix: add docs.rs feature attributes --- downloader/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/downloader/src/lib.rs b/downloader/src/lib.rs index a1483d4..45cc0e4 100644 --- a/downloader/src/lib.rs +++ b/downloader/src/lib.rs @@ -329,6 +329,7 @@ impl DownloaderBuilder { /// Set the indicatif [`MultiProgress`] used to show download progress /// for all downloads #[cfg(feature = "indicatif")] + #[cfg_attr(docsrs, doc(cfg(feature = "indicatif")))] #[must_use] pub fn multi_progress(mut self, progress: MultiProgress) -> Self { self.multi = Some(progress); @@ -337,6 +338,7 @@ impl DownloaderBuilder { /// Set the indicatif [`ProgressStyle`] for the progress bars displayed under `multi_progress` #[cfg(feature = "indicatif")] + #[cfg_attr(docsrs, doc(cfg(feature = "indicatif")))] #[must_use] pub fn progress_style(mut self, style: ProgressStyle) -> Self { self.progress_style = Some(style); @@ -381,6 +383,7 @@ impl DownloaderBuilder { /// Enable audio tagging #[cfg(feature = "audiotag")] + #[cfg_attr(docsrs, doc(cfg(feature = "audiotag")))] #[must_use] pub fn audio_tag(mut self) -> Self { self.audio_tag = true; @@ -389,6 +392,7 @@ impl DownloaderBuilder { /// Crop YouTube thumbnails to get square album covers #[cfg(feature = "audiotag")] + #[cfg_attr(docsrs, doc(cfg(feature = "audiotag")))] #[must_use] pub fn crop_cover(mut self) -> Self { self.crop_cover = true; @@ -609,6 +613,7 @@ impl DownloadQuery { /// Show the progress of this download using a Indicatif [`ProgressBar`] #[cfg(feature = "indicatif")] + #[cfg_attr(docsrs, doc(cfg(feature = "indicatif")))] #[must_use] pub fn progress_bar(mut self, progress: ProgressBar) -> Self { self.progress = Some(progress);