diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-04-15 10:25:37 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-04-16 14:35:53 +0200 |
commit | 55e353936e3f22b5da36be07e13e8ce3649db5cd (patch) | |
tree | 724a02b6c0859d4c18e8c10b06d1717f08a11c7f /openpgp/src/lib.rs | |
parent | 350320a32ce569d3e86352ba5a79ee969e9595af (diff) |
openpgp: Add version constant.
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r-- | openpgp/src/lib.rs | 3 |
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>; |