Skip to content

Commit 823acd6

Browse files
authored
docs: As implied by #5517 make sure everything still builds on docs.rs
As @guillaumemichel already found out, passing the `docsrs` cfg to rustc now breaks the documentation build. Although I couldn't exactly reproduce the docs.rs build env (everyone is welcome to try; it's explained [here](https://github.com/rust-lang/docs.rs/blob/master/README.md#build-subcommand)) it's safe to assume that the same problem will occur when we push to docs.rs. Passing the docsrs flag is also no longer required since it's now automatically passed to rustdoc when building on docs.rs. Explanation: https://docs.rs/about/builds#detecting-docsrs Pull-Request: #5535.
1 parent 732ade6 commit 823acd6

File tree

36 files changed

+0
-72
lines changed

36 files changed

+0
-72
lines changed

core/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ serde = ["multihash/serde-codec", "dep:serde", "libp2p-identity/serde"]
4848
# More information: https://docs.rs/about/builds#cross-compiling
4949
[package.metadata.docs.rs]
5050
all-features = true
51-
rustdoc-args = ["--cfg", "docsrs"]
52-
rustc-args = ["--cfg", "docsrs"]
5351

5452
[lints]
5553
workspace = true

identity/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ harness = false
5656
# More information: https://docs.rs/about/builds#cross-compiling
5757
[package.metadata.docs.rs]
5858
all-features = true
59-
rustdoc-args = ["--cfg", "docsrs"]
60-
rustc-args = ["--cfg", "docsrs"]
6159

6260
[lints]
6361
workspace = true

libp2p/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ tracing-subscriber = { workspace = true, features = ["env-filter"] }
150150
# More information: https://docs.rs/about/builds#cross-compiling
151151
[package.metadata.docs.rs]
152152
all-features = true
153-
rustdoc-args = ["--cfg", "docsrs"]
154-
rustc-args = ["--cfg", "docsrs"]
155153

156154
[lints]
157155
workspace = true

misc/metrics/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ libp2p-identity = { workspace = true, features = ["rand"] }
4040
# More information: https://docs.rs/about/builds#cross-compiling
4141
[package.metadata.docs.rs]
4242
all-features = true
43-
rustc-args = ["--cfg", "docsrs"]
44-
rustdoc-args = ["--cfg", "docsrs"]
4543

4644
[lints]
4745
workspace = true

misc/multistream-select/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ tracing-subscriber = { workspace = true, features = ["env-filter"] }
3030
# More information: https://docs.rs/about/builds#cross-compiling
3131
[package.metadata.docs.rs]
3232
all-features = true
33-
rustdoc-args = ["--cfg", "docsrs"]
34-
rustc-args = ["--cfg", "docsrs"]
3533

3634
[lints]
3735
workspace = true

misc/quick-protobuf-codec/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ harness = false
3030
# More information: https://docs.rs/about/builds#cross-compiling
3131
[package.metadata.docs.rs]
3232
all-features = true
33-
rustdoc-args = ["--cfg", "docsrs"]
34-
rustc-args = ["--cfg", "docsrs"]
3533

3634
[lints]
3735
workspace = true

misc/rw-stream-sink/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ async-std = "1.0"
2222
# More information: https://docs.rs/about/builds#cross-compiling
2323
[package.metadata.docs.rs]
2424
all-features = true
25-
rustdoc-args = ["--cfg", "docsrs"]
26-
rustc-args = ["--cfg", "docsrs"]
2725

2826
[lints]
2927
workspace = true

muxers/mplex/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ harness = false
4242
# More information: https://docs.rs/about/builds#cross-compiling
4343
[package.metadata.docs.rs]
4444
all-features = true
45-
rustdoc-args = ["--cfg", "docsrs"]
46-
rustc-args = ["--cfg", "docsrs"]
4745

4846
[lints]
4947
workspace = true

muxers/yamux/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ libp2p-muxer-test-harness = { path = "../test-harness" }
2727
# More information: https://docs.rs/about/builds#cross-compiling
2828
[package.metadata.docs.rs]
2929
all-features = true
30-
rustdoc-args = ["--cfg", "docsrs"]
31-
rustc-args = ["--cfg", "docsrs"]
3230

3331
[lints]
3432
workspace = true

protocols/autonat/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ tracing-subscriber = { workspace = true, features = ["env-filter"] }
3434
# More information: https://docs.rs/about/builds#cross-compiling
3535
[package.metadata.docs.rs]
3636
all-features = true
37-
rustdoc-args = ["--cfg", "docsrs"]
38-
rustc-args = ["--cfg", "docsrs"]
3937

4038
[lints]
4139
workspace = true

0 commit comments

Comments
 (0)