Skip to content

Commit 2f7f6ef

Browse files
authored
Simplify docsrs feature usage
- Don't instruct docs.rs to set it, it does so by default now: rust-lang/docs.rs#2390 - Because of that, check-cfg also recognizes it and does not need extra configuration either.
1 parent 75506a6 commit 2f7f6ef

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ rust-version = { workspace = true }
1313

1414
[package.metadata.docs.rs]
1515
all-features = true
16-
rustdoc-args = ["--cfg", "docsrs"]
1716

1817
[features]
1918
client-api = ["dep:as_variant", "dep:ruma-client-api"]

build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ use std::{env, process};
33
fn main() {
44
// Prevent unnecessary rerunning of this build script
55
println!("cargo:rerun-if-changed=build.rs");
6-
// Prevent nightly CI from erroring on docsrs attributes
7-
println!("cargo:rustc-check-cfg=cfg(docsrs)");
86

97
let tls_features = [
108
("tls-native", env::var_os("CARGO_FEATURE_TLS_NATIVE").is_some()),

0 commit comments

Comments
 (0)