diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-11-16 11:04:36 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-12-14 14:05:21 +0100 |
commit | d411fb80983a4d4ebb9f023599c38e34a26551e7 (patch) | |
tree | fc970ff950923f7c400b24163f4079b3c6ba48cf /store | |
parent | 251541318fdf453c5d756794b906cce2fd69b675 (diff) |
openpgp: Introduce trait Parse.
- Trait Parse introduces a uniform interface to parse packets,
messages, keys, and related data structures.
Diffstat (limited to 'store')
-rw-r--r-- | store/src/backend/mod.rs | 1 | ||||
-rw-r--r-- | store/src/lib.rs | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/store/src/backend/mod.rs b/store/src/backend/mod.rs index 25a4f3f0..98e05fa4 100644 --- a/store/src/backend/mod.rs +++ b/store/src/backend/mod.rs @@ -22,6 +22,7 @@ use tokio_core; use tokio_io::io::ReadHalf; use openpgp::{self, TPK, KeyID, Fingerprint}; +use openpgp::parse::Parse; use openpgp::serialize::Serialize; use sequoia_core as core; use sequoia_net as net; diff --git a/store/src/lib.rs b/store/src/lib.rs index a7c20510..9172ee7c 100644 --- a/store/src/lib.rs +++ b/store/src/lib.rs @@ -81,6 +81,7 @@ extern crate sequoia_net; use openpgp::Fingerprint; use openpgp::KeyID; use openpgp::TPK; +use openpgp::parse::Parse; use openpgp::serialize::Serialize; use sequoia_core as core; use sequoia_core::Context; @@ -119,6 +120,7 @@ impl Pool { /// # extern crate sequoia_core; /// # extern crate sequoia_store; /// # use openpgp::TPK; + /// # use openpgp::parse::Parse; /// # use sequoia_core::{Context, NetworkPolicy, IPCPolicy}; /// # use sequoia_store::{Pool, Result}; /// # fn main() { f().unwrap(); } @@ -154,6 +156,7 @@ impl Pool { /// # extern crate sequoia_core; /// # extern crate sequoia_store; /// # use openpgp::TPK; + /// # use openpgp::parse::Parse; /// # use sequoia_core::{Context, NetworkPolicy, IPCPolicy}; /// # use sequoia_store::{Pool, Result}; /// # fn main() { f().unwrap(); } @@ -188,6 +191,7 @@ impl Pool { /// # extern crate sequoia_core; /// # extern crate sequoia_store; /// # use openpgp::TPK; + /// # use openpgp::parse::Parse; /// # use sequoia_core::{Context, NetworkPolicy, IPCPolicy}; /// # use sequoia_store::{Pool, Result}; /// # fn main() { f().unwrap(); } @@ -226,6 +230,7 @@ impl Pool { /// # extern crate sequoia_core; /// # extern crate sequoia_store; /// # use openpgp::{TPK, KeyID}; + /// # use openpgp::parse::Parse; /// # use sequoia_core::{Context, NetworkPolicy, IPCPolicy}; /// # use sequoia_store::{Pool, Result}; /// # fn main() { f().unwrap(); } @@ -384,6 +389,7 @@ impl Store { /// # extern crate sequoia_core; /// # extern crate sequoia_store; /// # use openpgp::TPK; + /// # use openpgp::parse::Parse; /// # use sequoia_core::{Context, NetworkPolicy, IPCPolicy}; /// # use sequoia_store::{Store, Result}; /// # fn main() { f().unwrap(); } @@ -457,6 +463,7 @@ impl Store { /// # extern crate sequoia_core; /// # extern crate sequoia_store; /// # use openpgp::{TPK, KeyID}; + /// # use openpgp::parse::Parse; /// # use sequoia_core::{Context, NetworkPolicy, IPCPolicy}; /// # use sequoia_store::{Store, Result}; /// # fn main() { f().unwrap(); } @@ -656,6 +663,7 @@ impl Binding { /// # #[macro_use] extern crate sequoia_core; /// # extern crate sequoia_store; /// # use openpgp::TPK; + /// # use openpgp::parse::Parse; /// # use sequoia_core::{Context, NetworkPolicy, IPCPolicy}; /// # use sequoia_store::{Store, Result, Error}; /// # fn main() { f().unwrap(); } @@ -710,6 +718,7 @@ impl Binding { /// # #[macro_use] extern crate sequoia_core; /// # extern crate sequoia_store; /// # use openpgp::TPK; + /// # use openpgp::parse::Parse; /// # use sequoia_core::{Context, NetworkPolicy, IPCPolicy}; /// # use sequoia_store::{Store, Result, Error}; /// # fn main() { f().unwrap(); } @@ -861,6 +870,7 @@ impl Key { /// # extern crate sequoia_store; /// # use openpgp::Fingerprint; /// # use openpgp::TPK; + /// # use openpgp::parse::Parse; /// # use sequoia_core::{Context, NetworkPolicy, IPCPolicy}; /// # use sequoia_store::{Store, Result, Error}; /// # fn main() { f().unwrap(); } @@ -1213,6 +1223,7 @@ impl From<capnp::NotInSchema> for Error { #[cfg(test)] mod test { use super::{core, Store, Error, TPK, Fingerprint}; + use openpgp::parse::Parse; macro_rules! bytes { ( $x:expr ) => { include_bytes!(concat!("../../openpgp/tests/data/keys/", $x)) }; |