From ca7b83c8e8f5d3ee4c569157cede5df41365b7da Mon Sep 17 00:00:00 2001 From: Min Deng Date: Fri, 23 Feb 2024 22:37:43 +0800 Subject: [PATCH] Export symbol Exif. --- Cargo.toml | 2 +- src/exif/parser.rs | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 34155f6..d185028 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nom-exif" -version = "1.0.1" +version = "1.1.1" edition = "2021" license-file = "LICENSE" description = "Exif/metadata parsing library written in pure Rust, both JPEG/HEIF/HEIC images and MOV/MP4 videos are supported." diff --git a/src/exif/parser.rs b/src/exif/parser.rs index cef9a1e..b1d8d2e 100644 --- a/src/exif/parser.rs +++ b/src/exif/parser.rs @@ -105,7 +105,7 @@ impl Exif { .transpose() } - pub fn get_tz_offset(&self) -> Option { + fn get_tz_offset(&self) -> Option { let values = self.get_values(&[ExifTag::OffsetTimeOriginal, ExifTag::OffsetTime]); values.into_iter().find_map(|x| { if let EntryValue::Text(s) = x.1 { diff --git a/src/lib.rs b/src/lib.rs index cd02f5d..d739bb0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ pub use heif::parse_heif_exif; pub use jpeg::parse_jpeg_exif; pub use mov::{parse_metadata, parse_mov_metadata}; -pub use exif::ExifTag; +pub use exif::{Exif, ExifTag}; pub use values::EntryValue; pub use error::Error;