diff --git a/src/image.rs b/src/image.rs index cdb21af..d465133 100644 --- a/src/image.rs +++ b/src/image.rs @@ -41,6 +41,7 @@ use tiff::Field; /// /// The `buf` must be an empty `Vec` when this function is called. /// The raw Exif data is read into it. +#[deprecated(since = "0.1.2", note = "use `exif::Reader` instead")] pub fn parse_image<'a, R>(mut reader: &mut R, mut buf: &'a mut Vec) -> Result<(Vec>, bool), Error> where R: io::BufRead diff --git a/src/lib.rs b/src/lib.rs index a6b76dd..4b94a94 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,6 +41,7 @@ //! ``` pub use error::Error; +#[allow(deprecated)] pub use image::parse_image; pub use jpeg::get_exif_attr as get_exif_attr_from_jpeg; pub use reader::Reader;