Преглед изворни кода

Add `--generate-link-to-definition` option when building on docs.rs (#858)

Guillaume Gomez пре 3 година
родитељ
комит
86730f1653
5 измењених фајлова са 13 додато и 0 уклоњено
  1. 3 0
      data-url/Cargo.toml
  2. 3 0
      form_urlencoded/Cargo.toml
  3. 3 0
      idna/Cargo.toml
  4. 3 0
      percent_encoding/Cargo.toml
  5. 1 0
      url/Cargo.toml

+ 3 - 0
data-url/Cargo.toml

@@ -26,3 +26,6 @@ test = false
 [[test]]
 [[test]]
 name = "wpt"
 name = "wpt"
 harness = false
 harness = false
+
+[package.metadata.docs.rs]
+rustdoc-args = ["--generate-link-to-definition"]

+ 3 - 0
form_urlencoded/Cargo.toml

@@ -19,3 +19,6 @@ alloc = ["percent-encoding/alloc"]
 
 
 [dependencies]
 [dependencies]
 percent-encoding = { version = "2.3.0", default-features = false, path = "../percent_encoding" }
 percent-encoding = { version = "2.3.0", default-features = false, path = "../percent_encoding" }
+
+[package.metadata.docs.rs]
+rustdoc-args = ["--generate-link-to-definition"]

+ 3 - 0
idna/Cargo.toml

@@ -38,3 +38,6 @@ unicode-normalization = { version = "0.1.22", default-features = false }
 [[bench]]
 [[bench]]
 name = "all"
 name = "all"
 harness = false
 harness = false
+
+[package.metadata.docs.rs]
+rustdoc-args = ["--generate-link-to-definition"]

+ 3 - 0
percent_encoding/Cargo.toml

@@ -13,3 +13,6 @@ rust-version = "1.51"
 default = ["std"]
 default = ["std"]
 std = ["alloc"]
 std = ["alloc"]
 alloc = []
 alloc = []
+
+[package.metadata.docs.rs]
+rustdoc-args = ["--generate-link-to-definition"]

+ 1 - 0
url/Cargo.toml

@@ -47,6 +47,7 @@ harness = false
 
 
 [package.metadata.docs.rs]
 [package.metadata.docs.rs]
 features = ["serde"]
 features = ["serde"]
+rustdoc-args = ["--generate-link-to-definition"]
 
 
 [package.metadata.playground]
 [package.metadata.playground]
 features = ["serde"]
 features = ["serde"]