Files
h2/src/lib.rs
Carl Lerche 88d1de2da0 Expose Codec via an unstable flag (#49)
Exposes `Codec` using an unstable flag. This is useful for testing.
2017-09-03 16:17:05 -07:00

45 lines
674 B
Rust

#![deny(warnings, missing_debug_implementations)]
#[macro_use]
extern crate futures;
#[macro_use]
extern crate tokio_io;
// HTTP types
extern crate http;
// Buffer utilities
extern crate bytes;
// Hash function used for HPACK encoding and tracking stream states.
extern crate fnv;
extern crate byteorder;
extern crate slab;
#[macro_use]
extern crate log;
extern crate string;
mod error;
mod codec;
mod hpack;
mod proto;
#[cfg(not(feature = "unstable"))]
mod frame;
#[cfg(feature = "unstable")]
pub mod frame;
pub mod client;
pub mod server;
pub use error::{Error, Reason};
#[cfg(feature = "unstable")]
pub use codec::{Codec, SendError, RecvError, UserError};