packetwire 0.1.0

Bounded deterministic binary packet codec with stream and datagram framing
Documentation
#![forbid(unsafe_code)]
#![deny(missing_docs)]
#![doc = include_str!("../README.md")]
#![cfg_attr(coverage_nightly, allow(unused_features))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

extern crate self as packetwire;

mod binary;
mod error;
mod frame;

pub use binary::{BinaryDecode, BinaryEncode, BinaryReader, BinaryWriter, DecodeLimits};
pub use error::{ProtocolError, Result};
pub use frame::{
    CodecConfig, Packet, PacketDecoder, PacketEncode, PacketEncoder, PacketId, PacketSet,
};
pub use packetwire_derive::{packet, packet_set};

#[cfg(test)]
#[cfg_attr(coverage_nightly, coverage(off))]
mod sample;

/// The application protocol version represented by this codec.
pub const PROTOCOL_VERSION: u16 = 1;