Skip to content

fix broken doc.rs build#3

Open
pyroraptor07 wants to merge 1 commit into
edransy:mainfrom
pyroraptor07:docbuildfix
Open

fix broken doc.rs build#3
pyroraptor07 wants to merge 1 commit into
edransy:mainfrom
pyroraptor07:docbuildfix

Conversation

@pyroraptor07
Copy link
Copy Markdown

The 0.1.20 build on docs.rs for pipex is broken because the doc_cfg feature isn't enabled:

[INFO] [stderr]  Documenting pipex v0.1.20 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0658]: `#[doc(cfg)]` is experimental
[INFO] [stderr]   --> src/lib.rs:27:20
[INFO] [stderr]    |
[INFO] [stderr] 27 | #[cfg_attr(docsrs, doc(cfg(feature = "async")))]
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
[INFO] [stderr]    = help: add `#![feature(doc_cfg)]` to the crate attributes to enable
[INFO] [stderr]    = note: this compiler was built on 2025-09-01; consider upgrading it if it is out of date
[INFO] [stderr] 
[INFO] [stderr] error[E0658]: `#[doc(cfg)]` is experimental
[INFO] [stderr]   --> src/lib.rs:31:20
[INFO] [stderr]    |
[INFO] [stderr] 31 | #[cfg_attr(docsrs, doc(cfg(feature = "async")))]
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
[INFO] [stderr]    = help: add `#![feature(doc_cfg)]` to the crate attributes to enable
[INFO] [stderr]    = note: this compiler was built on 2025-09-01; consider upgrading it if it is out of date
[INFO] [stderr] 
[INFO] [stderr] error[E0658]: `#[doc(cfg)]` is experimental
[INFO] [stderr]   --> src/lib.rs:35:20
[INFO] [stderr]    |
[INFO] [stderr] 35 | #[cfg_attr(docsrs, doc(cfg(feature = "parallel")))]
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
[INFO] [stderr]    = help: add `#![feature(doc_cfg)]` to the crate attributes to enable
[INFO] [stderr]    = note: this compiler was built on 2025-09-01; consider upgrading it if it is out of date
[INFO] [stderr] 
[INFO] [stderr] error[E0658]: `#[doc(cfg)]` is experimental
[INFO] [stderr]   --> src/lib.rs:39:20
[INFO] [stderr]    |
[INFO] [stderr] 39 | #[cfg_attr(docsrs, doc(cfg(feature = "memoization")))]
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
[INFO] [stderr]    = help: add `#![feature(doc_cfg)]` to the crate attributes to enable
[INFO] [stderr]    = note: this compiler was built on 2025-09-01; consider upgrading it if it is out of date
[INFO] [stderr] 
[INFO] [stderr] error[E0658]: `#[doc(cfg)]` is experimental
[INFO] [stderr]   --> src/lib.rs:43:20
[INFO] [stderr]    |
[INFO] [stderr] 43 | #[cfg_attr(docsrs, doc(cfg(feature = "memoization")))]
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
[INFO] [stderr]    = help: add `#![feature(doc_cfg)]` to the crate attributes to enable
[INFO] [stderr]    = note: this compiler was built on 2025-09-01; consider upgrading it if it is out of date
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0658`.
[INFO] [stderr] error: could not document `pipex`

This change enables that feature on docs.rs and should fix the build errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant