summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-03-23 12:53:18 +0100
committerJustus Winter <justus@sequoia-pgp.org>2023-03-23 12:54:14 +0100
commit330c9a66abc6ce7d6cb79e5361ad0903b4ce3ab1 (patch)
tree26d908e2379b67c65b4f8bd13df403fd890e463b
parent7db963d430e29beb41548b8467465e99908df534 (diff)
openpgp: Re-export buffered_reader.
- We use this in our API, and re-exporting it here makes it easy to use the correct version of the crate in downstream code without having to explicitly depend on it.
-rw-r--r--openpgp/NEWS1
-rw-r--r--openpgp/src/parse.rs6
2 files changed, 7 insertions, 0 deletions
diff --git a/openpgp/NEWS b/openpgp/NEWS
index 2bd12a72..841241ea 100644
--- a/openpgp/NEWS
+++ b/openpgp/NEWS
@@ -11,6 +11,7 @@
- crypto::mpi::SecretKeyMaterial::from_bytes
- crypto::mpi::SecretKeyMaterial::from_bytes_with_checksum
- fmt::hex::Dumper::with_offset
+ - parse::buffered_reader re-export
- policy::AsymmetricAlgorithm::BrainpoolP384
** Deprecated functionality
- crypto::mpi::SecretKeyMaterial::parse
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs
index 42881aa4..0225d79b 100644
--- a/openpgp/src/parse.rs
+++ b/openpgp/src/parse.rs
@@ -185,6 +185,12 @@ use std::result::Result as StdResult;
use xxhash_rust::xxh3::Xxh3;
+// Re-export buffered_reader.
+//
+// We use this in our API, and re-exporting it here makes it easy to
+// use the correct version of the crate in downstream code without
+// having to explicitly depend on it.
+pub use buffered_reader;
use ::buffered_reader::*;
use crate::{