diff --git a/src/common.rs b/src/common.rs index 81f5da5..1b5742a 100644 --- a/src/common.rs +++ b/src/common.rs @@ -1,6 +1,6 @@ use std::borrow::Cow; -use std::collections::HashMap; -use std::collections::HashSet; +#[cfg(feature = "color_quant")] +use std::collections::{HashMap, HashSet}; /// Disposal method #[derive(Debug, Copy, Clone, PartialEq, Eq)] diff --git a/src/lib.rs b/src/lib.rs index 5f980bf..32eb6f8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -131,6 +131,7 @@ pub mod streaming_decoder { pub use crate::reader::{Decoded, FrameDataType, FrameDecoder, OutputBuffer, StreamingDecoder}; } +#[cfg(feature = "color_quant")] macro_rules! insert_as_doc { { $content:expr } => { #[allow(unused_doc_comments)]