summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openpgp/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs
index 7d9a7670..d8533204 100644
--- a/openpgp/src/lib.rs
+++ b/openpgp/src/lib.rs
@@ -172,6 +172,9 @@ fn frozen_time() -> std::time::SystemTime {
crate::types::Timestamp::from(1554542220 - 1).into()
}
+/// The version of this crate.
+pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");
+
/// Crate result specialization.
pub type Result<T> = ::std::result::Result<T, anyhow::Error>;