From 36d7dab504a526edd81d17744aae36f11ab3ee4a Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 19 Feb 2021 07:11:39 +0900 Subject: [PATCH] chore: remove html_root_url (#3489) Co-authored-by: Alice Ryhl --- CONTRIBUTING.md | 5 ++--- tokio-macros/Cargo.toml | 1 - tokio-macros/src/lib.rs | 1 - tokio-stream/Cargo.toml | 1 - tokio-stream/src/lib.rs | 1 - tokio-test/Cargo.toml | 1 - tokio-test/src/lib.rs | 1 - tokio-util/Cargo.toml | 1 - tokio-util/src/lib.rs | 1 - tokio/Cargo.toml | 1 - tokio/src/lib.rs | 1 - 11 files changed, 2 insertions(+), 13 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4d2a5e686..d2244ecc2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -571,9 +571,8 @@ When releasing a new version of a crate, follow these steps: 2. **Update Cargo metadata.** After releasing any path dependencies, update the `version` field in `Cargo.toml` to the new version, and the `documentation` field to the docs.rs URL of the new version. -3. **Update other documentation links.** Update the `#![doc(html_root_url)]` - attribute in the crate's `lib.rs` and the "Documentation" link in the crate's - `README.md` to point to the docs.rs URL of the new version. +3. **Update other documentation links.** Update the "Documentation" link in the + crate's `README.md` to point to the docs.rs URL of the new version. 4. **Update the changelog for the crate.** Each crate in the Tokio repository has its own `CHANGELOG.md` in that crate's subdirectory. Any changes to that crate since the last release should be added to the changelog. Change diff --git a/tokio-macros/Cargo.toml b/tokio-macros/Cargo.toml index ea7b2dee1..e8d0f5142 100644 --- a/tokio-macros/Cargo.toml +++ b/tokio-macros/Cargo.toml @@ -2,7 +2,6 @@ name = "tokio-macros" # When releasing to crates.io: # - Remove path dependencies -# - Update html_root_url. # - Update doc url # - Cargo.toml # - Update CHANGELOG.md. diff --git a/tokio-macros/src/lib.rs b/tokio-macros/src/lib.rs index 5e41a5ed1..46879f822 100644 --- a/tokio-macros/src/lib.rs +++ b/tokio-macros/src/lib.rs @@ -1,4 +1,3 @@ -#![doc(html_root_url = "https://docs.rs/tokio-macros/1.1.0")] #![allow(clippy::needless_doctest_main)] #![warn( missing_debug_implementations, diff --git a/tokio-stream/Cargo.toml b/tokio-stream/Cargo.toml index 022cff898..64fbc4472 100644 --- a/tokio-stream/Cargo.toml +++ b/tokio-stream/Cargo.toml @@ -2,7 +2,6 @@ name = "tokio-stream" # When releasing to crates.io: # - Remove path dependencies -# - Update html_root_url. # - Update doc url # - Cargo.toml # - Update CHANGELOG.md. diff --git a/tokio-stream/src/lib.rs b/tokio-stream/src/lib.rs index 731e0e570..981323870 100644 --- a/tokio-stream/src/lib.rs +++ b/tokio-stream/src/lib.rs @@ -1,4 +1,3 @@ -#![doc(html_root_url = "https://docs.rs/tokio-stream/0.1.3")] #![allow( clippy::cognitive_complexity, clippy::large_enum_variant, diff --git a/tokio-test/Cargo.toml b/tokio-test/Cargo.toml index 52e48e1fa..2a66e4fe4 100644 --- a/tokio-test/Cargo.toml +++ b/tokio-test/Cargo.toml @@ -2,7 +2,6 @@ name = "tokio-test" # When releasing to crates.io: # - Remove path dependencies -# - Update html_root_url. # - Update doc url # - Cargo.toml # - Update CHANGELOG.md. diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs index 47e2b03c1..93d8b02d6 100644 --- a/tokio-test/src/lib.rs +++ b/tokio-test/src/lib.rs @@ -1,4 +1,3 @@ -#![doc(html_root_url = "https://docs.rs/tokio-test/0.4.0")] #![warn( missing_debug_implementations, missing_docs, diff --git a/tokio-util/Cargo.toml b/tokio-util/Cargo.toml index 193056347..5827545e4 100644 --- a/tokio-util/Cargo.toml +++ b/tokio-util/Cargo.toml @@ -2,7 +2,6 @@ name = "tokio-util" # When releasing to crates.io: # - Remove path dependencies -# - Update html_root_url. # - Update doc url # - Cargo.toml # - Update CHANGELOG.md. diff --git a/tokio-util/src/lib.rs b/tokio-util/src/lib.rs index 440deb6c1..2460c8b49 100644 --- a/tokio-util/src/lib.rs +++ b/tokio-util/src/lib.rs @@ -1,4 +1,3 @@ -#![doc(html_root_url = "https://docs.rs/tokio-util/0.6.3")] #![allow(clippy::needless_doctest_main)] #![warn( missing_debug_implementations, diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 33c371c98..fd9831076 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -2,7 +2,6 @@ name = "tokio" # When releasing to crates.io: # - Remove path dependencies -# - Update html_root_url. # - Update doc url # - Cargo.toml # - README.md diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs index 46f1b84f8..f6c502e56 100644 --- a/tokio/src/lib.rs +++ b/tokio/src/lib.rs @@ -1,4 +1,3 @@ -#![doc(html_root_url = "https://docs.rs/tokio/1.2.0")] #![allow( clippy::cognitive_complexity, clippy::large_enum_variant,