Skip to content
Snippets Groups Projects
lib.rs 481 B
Newer Older
  • Learn to ignore specific revisions
  • Carl Lerche's avatar
    Carl Lerche committed
    #![crate_name = "bytes"]
    
    #![deny(warnings)]
    
    Carl Lerche's avatar
    Carl Lerche committed
    #[macro_use]
    extern crate log;
    
    
    Carl Lerche's avatar
    Carl Lerche committed
    extern crate byteorder;
    
    
    Carl Lerche's avatar
    Carl Lerche committed
    mod buf;
    mod bytes;
    
    
    Carl Lerche's avatar
    Carl Lerche committed
    pub use buf::{Buf, MutBuf, Source, Sink, Reader, ReadExt, Writer, WriteExt, Fmt};
    
    Carl Lerche's avatar
    Carl Lerche committed
    pub use buf::append::AppendBuf;
    
    pub use buf::block::{BlockBuf, BlockBufCursor};
    
    Carl Lerche's avatar
    Carl Lerche committed
    pub use buf::byte::{ByteBuf, MutByteBuf};
    pub use buf::ring::RingBuf;
    pub use buf::take::Take;
    pub use bytes::Bytes;
    
    
    const MAX_CAPACITY: usize = u32::MAX as usize;