Mark parse_image() deprecated.

This commit is contained in:
KAMADA Ken'ichi 2017-02-24 20:46:50 +09:00
parent 2893059568
commit 1d5d9fdd38
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ use tiff::Field;
///
/// The `buf` must be an empty `Vec<u8>` 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<u8>)
-> Result<(Vec<Field<'a>>, bool), Error>
where R: io::BufRead

View File

@ -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;