Files
bytes/src/lib.rs
T

23 lines
440 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;
mod buf;
mod bytes;
2015-04-07 23:40:00 -07:00
pub mod alloc;
2016-08-10 15:45:31 -07:00
pub use buf::{Buf, MutBuf, Source, Sink, ReadExt, WriteExt, Fmt};
pub use buf::append::AppendBuf;
2016-08-11 01:36:16 -07:00
pub use buf::block::{BlockBuf, BlockBufCursor};
2016-08-10 15:45:31 -07:00
pub use buf::byte::{ByteBuf, MutByteBuf};
pub use buf::ring::RingBuf;
pub use buf::take::Take;
pub use bytes::Bytes;
2015-04-07 23:40:00 -07:00
use std::u32;
const MAX_CAPACITY: usize = u32::MAX as usize;