mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-11 00:00:23 +02:00
25 lines
465 B
Rust
25 lines
465 B
Rust
#![crate_name = "bytes"]
|
|
#![deny(warnings)]
|
|
|
|
#[macro_use]
|
|
extern crate log;
|
|
|
|
extern crate byteorder;
|
|
|
|
mod buf;
|
|
mod bytes;
|
|
|
|
pub mod alloc;
|
|
|
|
pub use buf::{Buf, MutBuf, Source, Sink, ReadExt, 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;
|
|
|
|
use std::u32;
|
|
|
|
const MAX_CAPACITY: usize = u32::MAX as usize;
|