Skip to content

Make accidental access of #[doc(hidden)] symbols more explicit - #1651

Merged
Bromeon merged 1 commit into
masterfrom
mtnc/doc-hidden
Jun 28, 2026
Merged

Make accidental access of #[doc(hidden)] symbols more explicit#1651
Bromeon merged 1 commit into
masterfrom
mtnc/doc-hidden

Conversation

@Bromeon

@Bromeon Bromeon commented Jun 28, 2026

Copy link
Copy Markdown
Member

Symbols marked #[doc(hidden)] are explicitly not part of the public API, per lib.rs documentation. But sometimes they look like regular methods and users may accidentally use them, and be surprised about unannounced breaking changes.

Clarifies this in different ways:

  • add __ prefix for some internal APIs
  • gate behind an internal feature for itests
  • remove redundant methods such as ClassId::is_none()

Symbols marked `#[doc(hidden)]` are explicitly *not* part of the public API,
per lib.rs documentation. But sometimes they look like regular methods and users
may accidentally use them, and be surprised about unannounced breaking changes.

Clarifies this in different ways:
* add `__` prefix for some internal APIs
* gate behind an internal feature for itests
* remove redundant methods such as `ClassId::is_none()`
@Bromeon Bromeon added the maintenance Internal change, not user-facing, developer QoL. Refactors, dep updates, etc. label Jun 28, 2026
@GodotRust

Copy link
Copy Markdown

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1651

@Bromeon
Bromeon added this pull request to the merge queue Jun 28, 2026
Merged via the queue into master with commit 4b440df Jun 28, 2026
17 checks passed
@Bromeon
Bromeon deleted the mtnc/doc-hidden branch June 28, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Internal change, not user-facing, developer QoL. Refactors, dep updates, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants