diff options
author | Chih-hung Hsieh <chh@google.com> | 2020-07-14 04:16:32 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-07-14 04:16:32 +0000 |
commit | 9e908cd8b17b2231e6f526b68c7f2e830422f04d (patch) | |
tree | a1e903569e7b07558c4eef2bcef8542201d7906c /src/lib.rs | |
parent | 2bfd8bc8ca71d34cd6af7672edab48a954c14fe7 (diff) | |
parent | 815f544e751e7b3cdc563ca0c97849f7decf782f (diff) | |
download | bytes-9e908cd8b17b2231e6f526b68c7f2e830422f04d.tar.gz |
Merge "Upgrade rust/crates/bytes to 0.5.5"android-r-beta-3android-r-beta-2
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -1,5 +1,14 @@ -#![deny(warnings, missing_docs, missing_debug_implementations, rust_2018_idioms)] -#![doc(html_root_url = "https://docs.rs/bytes/0.5.4")] +#![deny( + warnings, + missing_docs, + missing_debug_implementations, + rust_2018_idioms +)] +#![doc(test( + no_crate_inject, + attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) +))] +#![doc(html_root_url = "https://docs.rs/bytes/0.5.5")] #![no_std] //! Provides abstractions for working with bytes. @@ -72,24 +81,20 @@ //! perform a syscall, which has the potential of failing. Operations on `Buf` //! and `BufMut` are infallible. - extern crate alloc; #[cfg(feature = "std")] extern crate std; pub mod buf; -pub use crate::buf::{ - Buf, - BufMut, -}; +pub use crate::buf::{Buf, BufMut}; -mod bytes_mut; mod bytes; +mod bytes_mut; mod fmt; mod loom; -pub use crate::bytes_mut::BytesMut; pub use crate::bytes::Bytes; +pub use crate::bytes_mut::BytesMut; // Optional Serde support #[cfg(feature = "serde")] |