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
36
//! Support for [Google protocol buffers][1] in combination with `serde`.
//!
//! The crate is split up into several logical parts.
//!
//!   * The [`descriptor`](descriptor/index.html) module provides an API for managing dynamically
//!     loaded protocol buffer schemata.
//!   * The [`value`](value/index.html) module provides structs that can hold any raw protocol
//!     buffer decoded data (but the representation is heavily coupled with a schema).
//!   * The [`de`](de/index.html) module can be used to deserialize binary encoded protocol buffer
//!     messages given some schema descriptors.
//!
//! Serialization is not yet implemented in this version.
//!
//! [1]: https://developers.google.com/protocol-buffers/
#![deny(warnings)]
#![deny(clippy::all)]
#![deny(
    missing_debug_implementations,
    missing_docs,
    trivial_casts,
    trivial_numeric_casts,
    unused_extern_crates,
    unused_import_braces,
    unused_qualifications
)]
#[macro_use]
extern crate log;
#[macro_use]
extern crate serde;

pub mod de;
pub mod descriptor;
pub mod error;
pub mod value;

pub use crate::error::Error;