cmail_rpgp/
lib.rs

1//! # rPGP
2//!
3//! rPGP is an OpenPGP implementation.
4//!
5//! Usage examples are available under the respective modules:
6//! [Key generation], [signing and verifying with external hashing], [packet based signing and verifying].
7//!
8//! [Key generation]: crate::composed::key
9//! [signing and verifying with external hashing]: crate::composed::signed_key
10//! [packet based signing and verifying]: crate::packet
11
12#![forbid(unsafe_code)]
13#![deny(
14    clippy::all,
15    clippy::style,
16    clippy::perf,
17    clippy::complexity,
18    clippy::correctness,
19    clippy::unwrap_used,
20    rust_2018_idioms
21)]
22#![allow(
23    clippy::missing_const_for_fn,
24    clippy::use_self,
25    clippy::needless_borrows_for_generic_args
26)]
27// Enable backtraces for thiserror.
28#![cfg_attr(feature = "nightly", feature(error_generic_member_access))]
29
30#[cfg(test)]
31#[macro_use]
32extern crate pretty_assertions;
33
34// public so it can be used in doc test
35#[macro_use]
36pub mod util;
37
38#[macro_use]
39pub mod errors;
40pub mod armor;
41pub mod base64_decoder;
42pub mod base64_reader;
43pub mod composed;
44pub mod crypto;
45pub mod line_writer;
46pub mod normalize_lines;
47pub mod packet;
48pub mod ser;
49pub mod types;
50
51// reexports for easier use
52#[allow(unused_imports)]
53pub use self::composed::key::*;
54pub use self::composed::*;
55pub use self::packet::Signature;
56
57/// The version of this crate.
58pub const VERSION: &str = env!("CARGO_PKG_VERSION");