Files
bytes/src/lib.rs
T

25 lines
477 B
Rust
Raw Normal View History

2015-01-30 00:04:33 -08:00
#![crate_name = "bytes"]
#![deny(warnings)]
2016-07-20 13:27:41 +02:00
extern crate stable_heap;
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;
pub use buf::block::{BlockBuf, NewBlock, BlockBufCursor};
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;