aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a61e347..accbf71 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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")]