Skip to content

Commit

Permalink
Add --generate-link-to-definition option when building on docs.rs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 14, 2023
1 parent e4dbb43 commit 86730f1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data-url/Cargo.toml
Expand Up @@ -26,3 +26,6 @@ test = false
[[test]]
name = "wpt"
harness = false

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions form_urlencoded/Cargo.toml
Expand Up @@ -19,3 +19,6 @@ alloc = ["percent-encoding/alloc"]

[dependencies]
percent-encoding = { version = "2.3.0", default-features = false, path = "../percent_encoding" }

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions idna/Cargo.toml
Expand Up @@ -38,3 +38,6 @@ unicode-normalization = { version = "0.1.22", default-features = false }
[[bench]]
name = "all"
harness = false

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions percent_encoding/Cargo.toml
Expand Up @@ -13,3 +13,6 @@ rust-version = "1.51"
default = ["std"]
std = ["alloc"]
alloc = []

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
1 change: 1 addition & 0 deletions url/Cargo.toml
Expand Up @@ -47,6 +47,7 @@ harness = false

[package.metadata.docs.rs]
features = ["serde"]
rustdoc-args = ["--generate-link-to-definition"]

[package.metadata.playground]
features = ["serde"]

0 comments on commit 86730f1

Please sign in to comment.