mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-20 00:00:10 +02:00
Reorganize crate
This commit is contained in:
+23
-10
@@ -3,21 +3,34 @@
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
extern crate byteorder;
|
||||
|
||||
mod buf;
|
||||
mod bytes;
|
||||
// Implementation in here
|
||||
mod imp;
|
||||
|
||||
pub mod alloc;
|
||||
|
||||
pub use buf::{Buf, MutBuf, Source, Sink, Reader, ReadExt, Writer, WriteExt, Fmt};
|
||||
pub use buf::append::AppendBuf;
|
||||
pub use buf::block::{BlockBuf, BlockBufCursor};
|
||||
pub use buf::byte::{ByteBuf, MutByteBuf};
|
||||
pub use buf::ring::RingBuf;
|
||||
pub use buf::take::Take;
|
||||
pub use bytes::Bytes;
|
||||
pub use imp::buf::{Buf, MutBuf};
|
||||
pub use imp::bytes::Bytes;
|
||||
|
||||
pub mod buf {
|
||||
pub use imp::buf::{
|
||||
Source,
|
||||
Sink,
|
||||
Reader,
|
||||
ReadExt,
|
||||
Writer,
|
||||
WriteExt,
|
||||
Fmt,
|
||||
};
|
||||
pub use imp::buf::append::AppendBuf;
|
||||
pub use imp::buf::block::{BlockBuf, BlockBufCursor};
|
||||
pub use imp::buf::byte::{ByteBuf, MutByteBuf};
|
||||
pub use imp::buf::ring::RingBuf;
|
||||
pub use imp::buf::take::Take;
|
||||
|
||||
pub use imp::bytes::BytesBuf;
|
||||
}
|
||||
|
||||
use std::u32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user