Skip to content

Conversation

mbrobbel
Copy link
Member

Which issue does this PR close?

None

Rationale for this change

auto_doc_cfg was merged into doc_cfg in rust-lang/rust#138907 so without this change the docs.rs build fails.

What changes are included in this PR?

Use doc_cfg instead of auto_doc_cfg.

Are these changes tested?

Tested with https://github.com/dtolnay/cargo-docs-rs

Are there any user-facing changes?

No

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates optimizer Optimizer rules core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) substrait Changes to the substrait crate catalog Related to the catalog crate common Related to common crate execution Related to the execution crate proto Related to proto crate functions Changes to functions implementation datasource Changes to the datasource crate ffi Changes to the ffi crate physical-plan Changes to the physical-plan crate spark labels Sep 30, 2025
@mbrobbel mbrobbel mentioned this pull request Sep 30, 2025
18 tasks
@AdamGS AdamGS mentioned this pull request Sep 30, 2025
22 tasks
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THank you @mbrobbel

Specifically, without this PR the docs.rs build is failing

You can see it like

rustup update
cargo +nightly docs-rs -p datafusion
error[E0557]: feature has been removed
  --> datafusion/core/src/lib.rs:22:29
   |
22 | #![cfg_attr(docsrs, feature(doc_auto_cfg))]
   |                             ^^^^^^^^^^^^ feature has been removed
   |
   = note: removed in CURRENT_RUSTC_VERSION; see <https://github.com/rust-lang/rust/pull/138907> for more information
   = note: merged into `doc_cfg`

error: Compilation failed, aborting rustdoc

For more information about this error, try `rustc --explain E0557`.
error: could not document `datafusion`

With this PR it builds successfully!

@alamb alamb changed the title Replace auto_doc_cfg with doc_cfg Fix docs.rs build: Replace auto_doc_cfg with doc_cfg Sep 30, 2025
@alamb alamb added the documentation Improvements or additions to documentation label Sep 30, 2025
@xudong963 xudong963 added this pull request to the merge queue Oct 1, 2025
Merged via the queue into apache:main with commit 843e6f4 Oct 1, 2025
29 checks passed
@mbrobbel mbrobbel deleted the doc_auto_cfg branch October 1, 2025 05:44
AdamGS pushed a commit to AdamGS/arrow-datafusion that referenced this pull request Oct 2, 2025
alamb added a commit that referenced this pull request Oct 3, 2025
Co-authored-by: Matthijs Brobbel <m1brobbel@gmail.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
catalog Related to the catalog crate common Related to common crate core Core DataFusion crate datasource Changes to the datasource crate documentation Improvements or additions to documentation execution Related to the execution crate ffi Changes to the ffi crate functions Changes to functions implementation logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Changes to the physical-expr crates physical-plan Changes to the physical-plan crate proto Related to proto crate spark sql SQL Planner sqllogictest SQL Logic Tests (.slt) substrait Changes to the substrait crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants