Skip to content

Commit 4904f55

Browse files
committed
docs: fix docs.rs build
The current documentation build in docs.rs breaks with the following error: [INFO] [stderr] error[E0557]: feature has been removed [INFO] [stderr] --> src/lib.rs:11:29 [INFO] [stderr] | [INFO] [stderr] 11 | #![cfg_attr(docsrs, feature(doc_auto_cfg))] [INFO] [stderr] | ^^^^^^^^^^^^ feature has been removed [INFO] [stderr] | [INFO] [stderr] = note: removed in 1.92.0; see <rust-lang/rust#138907> for more information [INFO] [stderr] = note: merged into `doc_cfg` So replace `doc_auto_cfg` with `doc_cfg`, which generates the expected docs, showing the required features for each module. Signed-off-by: Carlos López <[email protected]>
1 parent 7b6c2b3 commit 4904f55

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Upcoming Release
22

3+
- [[#224](https://github.com/rust-vmm/linux-loader/pull/224)] Fixed docs.rs build.
4+
35
# [v0.13.2]
46

57
## Changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause
99

1010
#![deny(missing_docs)]
11-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
11+
#![cfg_attr(docsrs, feature(doc_cfg))]
1212

1313
//! A Linux kernel image loading crate.
1414
//!

0 commit comments

Comments
 (0)