Files
bytes/src/lib.rs
T

36 lines
711 B
Rust
Raw Normal View History

2015-01-30 00:04:33 -08:00
#![crate_name = "bytes"]
#![deny(warnings)]
2016-08-10 15:45:31 -07:00
#[macro_use]
extern crate log;
2016-08-31 12:07:44 -07:00
extern crate byteorder;
2016-09-23 12:05:32 -07:00
// Implementation in here
mod imp;
2016-09-23 22:53:52 -07:00
// TODO: delete
mod alloc;
2015-04-07 23:40:00 -07:00
2016-09-25 22:33:49 -07:00
pub use imp::buf::{Buf, MutBuf, IntoBuf};
2016-09-23 12:05:32 -07:00
pub use imp::bytes::Bytes;
pub mod buf {
2016-09-23 14:51:48 -07:00
//! Traits, helpers, and type definitions for working with buffers.
2016-09-23 12:05:32 -07:00
pub use imp::buf::{
Source,
Sink,
Reader,
ReadExt,
Writer,
WriteExt,
Fmt,
};
2016-09-23 22:53:52 -07:00
pub use imp::buf::slice_buf::SliceBuf;
2016-09-23 12:05:32 -07:00
pub use imp::buf::append::AppendBuf;
pub use imp::buf::block::{BlockBuf, BlockBufCursor};
pub use imp::buf::ring::RingBuf;
pub use imp::buf::take::Take;
pub use imp::bytes::BytesBuf;
}