summaryrefslogtreecommitdiffstats
path: root/openpgp/src/lib.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-15 10:25:37 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-16 14:35:53 +0200
commit55e353936e3f22b5da36be07e13e8ce3649db5cd (patch)
tree724a02b6c0859d4c18e8c10b06d1717f08a11c7f /openpgp/src/lib.rs
parent350320a32ce569d3e86352ba5a79ee969e9595af (diff)
openpgp: Add version constant.
Diffstat (limited to 'openpgp/src/lib.rs')
-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>;