From 1a423b3322bd32afc761a2a39fc986909aab633d Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 23 Nov 2021 19:53:32 +0900 Subject: [PATCH] chore: remove doc URL from Cargo.toml (#4251) https://doc.rust-lang.org/cargo/reference/manifest.html#the-documentation-field > If no URL is specified in the manifest file, crates.io will > automatically link your crate to the corresponding docs.rs page. --- tokio-macros/Cargo.toml | 3 --- tokio-stream/Cargo.toml | 3 --- tokio-test/Cargo.toml | 3 --- tokio-util/Cargo.toml | 3 --- tokio/Cargo.toml | 2 -- tokio/tests/rt_handle_block_on.rs | 2 +- 6 files changed, 1 insertion(+), 15 deletions(-) diff --git a/tokio-macros/Cargo.toml b/tokio-macros/Cargo.toml index 34ca4b0a3..e96ba20c9 100644 --- a/tokio-macros/Cargo.toml +++ b/tokio-macros/Cargo.toml @@ -2,8 +2,6 @@ name = "tokio-macros" # When releasing to crates.io: # - Remove path dependencies -# - Update doc url -# - Cargo.toml # - Update CHANGELOG.md. # - Create "tokio-macros-1.0.x" git tag. version = "1.6.0" @@ -13,7 +11,6 @@ authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" homepage = "https://tokio.rs" -documentation = "https://docs.rs/tokio-macros/1.6.0/tokio_macros" description = """ Tokio's proc macros. """ diff --git a/tokio-stream/Cargo.toml b/tokio-stream/Cargo.toml index 41c1a71c3..5b2535a33 100644 --- a/tokio-stream/Cargo.toml +++ b/tokio-stream/Cargo.toml @@ -2,8 +2,6 @@ name = "tokio-stream" # When releasing to crates.io: # - Remove path dependencies -# - Update doc url -# - Cargo.toml # - Update CHANGELOG.md. # - Create "tokio-stream-0.1.x" git tag. version = "0.1.8" @@ -13,7 +11,6 @@ authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" homepage = "https://tokio.rs" -documentation = "https://docs.rs/tokio-stream/0.1.8/tokio_stream" description = """ Utilities to work with `Stream` and `tokio`. """ diff --git a/tokio-test/Cargo.toml b/tokio-test/Cargo.toml index 09fdf06b5..59af228da 100644 --- a/tokio-test/Cargo.toml +++ b/tokio-test/Cargo.toml @@ -2,8 +2,6 @@ name = "tokio-test" # When releasing to crates.io: # - Remove path dependencies -# - Update doc url -# - Cargo.toml # - Update CHANGELOG.md. # - Create "tokio-test-0.4.x" git tag. version = "0.4.2" @@ -13,7 +11,6 @@ authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" homepage = "https://tokio.rs" -documentation = "https://docs.rs/tokio-test/0.4.2/tokio_test" description = """ Testing utilities for Tokio- and futures-based code """ diff --git a/tokio-util/Cargo.toml b/tokio-util/Cargo.toml index 2bf6ac9a0..85df32c26 100644 --- a/tokio-util/Cargo.toml +++ b/tokio-util/Cargo.toml @@ -2,8 +2,6 @@ name = "tokio-util" # When releasing to crates.io: # - Remove path dependencies -# - Update doc url -# - Cargo.toml # - Update CHANGELOG.md. # - Create "tokio-util-0.6.x" git tag. version = "0.6.9" @@ -13,7 +11,6 @@ authors = ["Tokio Contributors "] license = "MIT" repository = "https://github.com/tokio-rs/tokio" homepage = "https://tokio.rs" -documentation = "https://docs.rs/tokio-util/0.6.9/tokio_util" description = """ Additional utilities for working with Tokio. """ diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 0a5cfea03..ee3a2260b 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -3,7 +3,6 @@ name = "tokio" # When releasing to crates.io: # - Remove path dependencies # - Update doc url -# - Cargo.toml # - README.md # - Update CHANGELOG.md. # - Create "v1.0.x" git tag. @@ -13,7 +12,6 @@ rust-version = "1.46" authors = ["Tokio Contributors "] license = "MIT" readme = "README.md" -documentation = "https://docs.rs/tokio/1.14.0/tokio/" repository = "https://github.com/tokio-rs/tokio" homepage = "https://tokio.rs" description = """ diff --git a/tokio/tests/rt_handle_block_on.rs b/tokio/tests/rt_handle_block_on.rs index 17878c8d2..5c1d533a0 100644 --- a/tokio/tests/rt_handle_block_on.rs +++ b/tokio/tests/rt_handle_block_on.rs @@ -135,7 +135,7 @@ rt_test! { let contents = Handle::current() .block_on(fs::read_to_string("Cargo.toml")) .unwrap(); - assert!(contents.contains("Cargo.toml")); + assert!(contents.contains("https://tokio.rs")); } #[test]