From 0ae2475bb824bcd139b765bf8741197b05a04af6 Mon Sep 17 00:00:00 2001 From: Yusuke Sasaki Date: Mon, 24 Sep 2018 19:07:44 +0900 Subject: [PATCH] add `#[doc(html_root_url)]` to all published crates --- juniper/src/lib.rs | 1 + juniper_codegen/src/lib.rs | 1 + juniper_hyper/src/lib.rs | 2 ++ juniper_iron/src/lib.rs | 2 ++ juniper_rocket/src/lib.rs | 2 ++ juniper_warp/src/lib.rs | 1 + 6 files changed, 9 insertions(+) diff --git a/juniper/src/lib.rs b/juniper/src/lib.rs index 1a2943d4..ffd88742 100644 --- a/juniper/src/lib.rs +++ b/juniper/src/lib.rs @@ -88,6 +88,7 @@ Juniper has not reached 1.0 yet, thus some API instability should be expected. [chrono]: https://crates.io/crates/chrono */ +#![doc(html_root_url = "https://docs.rs/juniper/0.11.1")] #![warn(missing_docs)] #[doc(hidden)] diff --git a/juniper_codegen/src/lib.rs b/juniper_codegen/src/lib.rs index d9be341d..d6391eca 100644 --- a/juniper_codegen/src/lib.rs +++ b/juniper_codegen/src/lib.rs @@ -4,6 +4,7 @@ //! You should not depend on juniper_codegen directly. //! You only need the `juniper` crate. +#![doc(html_root_url = "https://docs.rs/juniper_codegen/0.11.1")] #![recursion_limit = "1024"] extern crate proc_macro; diff --git a/juniper_hyper/src/lib.rs b/juniper_hyper/src/lib.rs index 2c217a37..ec088cbd 100644 --- a/juniper_hyper/src/lib.rs +++ b/juniper_hyper/src/lib.rs @@ -1,3 +1,5 @@ +#![doc(html_root_url = "https://docs.rs/juniper_hyper/0.2.0")] + #[cfg(test)] extern crate reqwest; diff --git a/juniper_iron/src/lib.rs b/juniper_iron/src/lib.rs index f97f6a5e..d56f0b94 100644 --- a/juniper_iron/src/lib.rs +++ b/juniper_iron/src/lib.rs @@ -103,6 +103,8 @@ supported. */ +#![doc(html_root_url = "https://docs.rs/juniper_iron/0.3.0")] + #[cfg(test)] extern crate iron_test; #[cfg(test)] diff --git a/juniper_rocket/src/lib.rs b/juniper_rocket/src/lib.rs index 8f746155..21ce8379 100644 --- a/juniper_rocket/src/lib.rs +++ b/juniper_rocket/src/lib.rs @@ -36,6 +36,8 @@ Check the LICENSE file for details. */ +#![doc(html_root_url = "https://docs.rs/juniper_rocket/0.2.0")] + #![feature(decl_macro, proc_macro_hygiene)] use std::error::Error; diff --git a/juniper_warp/src/lib.rs b/juniper_warp/src/lib.rs index 3c1d442a..fe8224c1 100644 --- a/juniper_warp/src/lib.rs +++ b/juniper_warp/src/lib.rs @@ -38,6 +38,7 @@ Check the LICENSE file for details. #![deny(missing_docs)] #![deny(warnings)] +#![doc(html_root_url = "https://docs.rs/juniper_warp/0.2.0")] use futures::{future::poll_fn, Future}; use juniper::{DefaultScalarValue, InputValue, ScalarRefValue, ScalarValue};