diff --git a/src/lib.rs b/src/lib.rs
index 1fbc21f358081e28dc68dd759b481757ae0a463c..8ac73f4f91fdc8668d4d7bdbf3174c4a71cb97e1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -69,6 +69,7 @@
 //! and `BufMut` are infallible.
 
 #![deny(warnings, missing_docs)]
+#![doc(html_root_url = "https://docs.rs/bytes/0.4")]
 
 extern crate byteorder;