Skip to content

Commit 8c515b0

Browse files
zecakehstefanceriu
authored andcommitted
fix(docs): Replace doc_auto_cfg with doc_cfg feature
The former has been merge in the latter, and it errors when generating the docs in a recent version of nightly, like the one used on docs.rs. This also requires to bump the version of nightly used in CI, otherwise it would break the docs generation. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
1 parent 81a69f8 commit 8c515b0

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ jobs:
313313
- name: Install Rust
314314
uses: dtolnay/rust-toolchain@master
315315
with:
316-
toolchain: nightly-2025-08-08
316+
toolchain: nightly-2025-10-01
317317
components: clippy, rustfmt
318318

319319
- name: Load cache

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install Rust
3232
uses: dtolnay/rust-toolchain@master
3333
with:
34-
toolchain: nightly-2025-08-08
34+
toolchain: nightly-2025-10-01
3535

3636
- name: Install Node.js
3737
uses: actions/setup-node@v5

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(docsrs, feature(doc_auto_cfg))]
17+
#![cfg_attr(docsrs, feature(doc_cfg))]
1818
#![cfg_attr(target_family = "wasm", allow(clippy::arc_with_non_send_sync))]
1919
#![warn(missing_docs, missing_debug_implementations)]
2020

crates/matrix-sdk-crypto/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(docsrs, feature(doc_auto_cfg))]
17+
#![cfg_attr(docsrs, feature(doc_cfg))]
1818
#![warn(missing_docs, missing_debug_implementations)]
1919
#![cfg_attr(target_family = "wasm", allow(clippy::arc_with_non_send_sync))]
2020

crates/matrix-sdk-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(docsrs, feature(doc_auto_cfg))]
16+
#![cfg_attr(docsrs, feature(doc_cfg))]
1717
#![warn(missing_debug_implementations, missing_docs)]
1818

1919
mod error;

crates/matrix-sdk-ui/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
#![cfg_attr(target_family = "wasm", allow(clippy::arc_with_non_send_sync))]
16-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
16+
#![cfg_attr(docsrs, feature(doc_cfg))]
1717

1818
pub use eyeball_im;
1919
use ruma::html::HtmlSanitizerMode;

crates/matrix-sdk/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#![doc = include_str!("../README.md")]
1717
#![warn(missing_debug_implementations, missing_docs)]
1818
#![cfg_attr(target_family = "wasm", allow(clippy::arc_with_non_send_sync))]
19-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
19+
#![cfg_attr(docsrs, feature(doc_cfg))]
2020

2121
pub use async_trait::async_trait;
2222
pub use bytes;

xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use release::ReleaseArgs;
1717
use swift::SwiftArgs;
1818
use xshell::{Shell, cmd};
1919

20-
const NIGHTLY: &str = "nightly-2025-08-08";
20+
const NIGHTLY: &str = "nightly-2025-10-01";
2121

2222
type Result<T, E = Box<dyn std::error::Error>> = std::result::Result<T, E>;
2323

0 commit comments

Comments
 (0)