summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
blob: 2b764c9e923c64919bc82638c15868695f07fd82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//! A modular OpenPGP implementation.
//!
//! Sequoia consists of several modules.  This crate conveniently
//! re-exports the other crates.
//!
//! # Example
//!
//! ```
//! use std::io::Read;
//! extern crate sequoia_openpgp as openpgp;
//! # use std::io::Result;
//! # fn main() { f().unwrap(); }
//! # fn f() -> Result<()> {
//!
//! let mut reader = openpgp::armor::Reader::from_bytes(
//!    b"-----BEGIN PGP ARMORED FILE-----
//!
//!      SGVsbG8gd29ybGQh
//!      =s4Gu
//!      -----END PGP ARMORED FILE-----", None);
//!
//! let mut content = String::new();
//! reader.read_to_string(&mut content)?;
//! assert_eq!(content, "Hello world!");
//! # Ok(())
//! # }
//! ```

// XXX: It would be nice to re-export the macros too.
pub extern crate sequoia_openpgp as openpgp;
pub extern crate sequoia_core as core;
pub extern crate sequoia_net as net;
pub extern crate sequoia_store as store;