Skip to content

Commit f12f03b

Browse files
committed
docs: Switch to the doc_auto_cfg feature
1 parent 9856270 commit f12f03b

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

crates/matrix-qrcode/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ rust-version = "1.56"
1212
repository = "https://github.com/matrix-org/matrix-rust-sdk"
1313

1414
[package.metadata.docs.rs]
15-
features = ["docs"]
16-
rustdoc-args = ["--cfg", "feature=\"docs\""]
15+
features = ["docsrs"]
16+
rustdoc-args = ["--cfg", "docsrs"]
1717

1818
[features]
1919
default = ["decode_image"]
2020
decode_image = ["image", "rqrr", "qrcode/image", "qrcode/svg"]
2121

22-
docs = ["decode_image"]
22+
docsrs = ["decode_image"]
2323

2424
[dependencies]
2525
base64 = "0.13.0"

crates/matrix-qrcode/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
#![doc = include_str!("../README.md")]
16-
#![cfg_attr(feature = "docs", feature(doc_cfg))]
16+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1717
#![deny(
1818
missing_debug_implementations,
1919
dead_code,

crates/matrix-sdk-base/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ rust-version = "1.56"
1212
version = "0.4.1"
1313

1414
[package.metadata.docs.rs]
15-
features = ["docs"]
16-
rustdoc-args = ["--cfg", "feature=\"docs\""]
15+
features = ["docsrs"]
16+
rustdoc-args = ["--cfg", "docsrs"]
1717

1818
[features]
1919
default = []
@@ -29,7 +29,7 @@ sled_state_store = [
2929
]
3030
sled_cryptostore = ["matrix-sdk-crypto/sled_cryptostore"]
3131

32-
docs = ["encryption", "sled_cryptostore"]
32+
docsrs = ["encryption", "sled_cryptostore"]
3333

3434
[dependencies]
3535
chacha20poly1305 = { version = "0.9.0", optional = true }

crates/matrix-sdk-base/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// limitations under the License.
1515

1616
#![doc = include_str!("../README.md")]
17-
#![cfg_attr(feature = "docs", feature(doc_cfg))]
17+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1818
#![deny(
1919
missing_debug_implementations,
2020
missing_docs,

crates/matrix-sdk-crypto/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ rust-version = "1.56"
1212
version = "0.4.1"
1313

1414
[package.metadata.docs.rs]
15-
features = ["docs"]
16-
rustdoc-args = ["--cfg", "feature=\"docs\""]
15+
features = ["docsrs"]
16+
rustdoc-args = ["--cfg", "docsrs"]
1717

1818
[features]
1919
default = []
2020
qrcode = ["matrix-qrcode"]
2121
backups_v1 = []
2222
sled_cryptostore = ["sled"]
23-
docs = ["sled_cryptostore"]
23+
docsrs = ["sled_cryptostore"]
2424

2525
[dependencies]
2626
aes = { version = "0.7.4", features = ["ctr"] }

crates/matrix-sdk-crypto/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
#![doc = include_str!("../README.md")]
16-
#![cfg_attr(feature = "docs", feature(doc_cfg))]
16+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1717
#![deny(
1818
missing_debug_implementations,
1919
dead_code,

crates/matrix-sdk/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ rust-version = "1.56"
1212
version = "0.4.1"
1313

1414
[package.metadata.docs.rs]
15-
features = ["docs"]
16-
rustdoc-args = ["--cfg", "feature=\"docs\""]
15+
features = ["docsrs"]
16+
rustdoc-args = ["--cfg", "docsrs"]
1717

1818
[features]
1919
default = [
@@ -36,7 +36,7 @@ socks = ["reqwest/socks"]
3636
sso_login = ["warp", "rand", "tokio-stream"]
3737
appservice = ["ruma/appservice-api-s", "ruma/appservice-api-helper", "ruma/rand"]
3838

39-
docs = [
39+
docsrs = [
4040
"encryption",
4141
"sled_cryptostore",
4242
"sled_state_store",

crates/matrix-sdk/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
unused_import_braces,
2626
unused_qualifications
2727
)]
28-
#![cfg_attr(feature = "docs", feature(doc_cfg))]
28+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2929

3030
#[cfg(not(any(feature = "native-tls", feature = "rustls-tls",)))]
3131
compile_error!("one of 'native-tls' or 'rustls-tls' features must be enabled");

0 commit comments

Comments
 (0)