pgp/
lib.rs

1#![doc = include_str!("../README.md")]
2
3//! Usage examples are available under the respective modules:
4//! [Key generation], [signing and verifying with external hashing], [packet based signing and verifying].
5//!
6//! [Key generation]: crate::composed::key
7//! [signing and verifying with external hashing]: crate::composed::signed_key
8//! [packet based signing and verifying]: crate::packet
9
10#![cfg_attr(not(test), deny(clippy::unwrap_used))]
11#![allow(clippy::missing_const_for_fn, clippy::type_complexity)]
12#![deny(unsafe_code)]
13
14#[cfg(test)]
15#[macro_use]
16extern crate pretty_assertions;
17
18// Reexport as used in the public api
19pub use bytes;
20
21pub(crate) mod util;
22
23pub mod adapter;
24pub mod armor;
25pub mod base64;
26pub mod composed;
27pub mod crypto;
28pub mod errors;
29pub mod line_writer;
30pub mod normalize_lines;
31pub mod packet;
32pub mod ser;
33pub mod types;
34
35mod parsing;
36mod parsing_reader;
37
38/// The version of this crate.
39pub const VERSION: &str = env!("CARGO_PKG_VERSION");
40
41/// Default maximum size that gets buffered.
42pub const MAX_BUFFER_SIZE: usize = 1024 * 1024 * 1024;