Skip to content

doc: mark api elements gated behind a feature flag in rust doc#22

Merged
haraldmaida merged 1 commit into
mainfrom
doc/render-feature-requirements-in-docsrs
Apr 21, 2025
Merged

doc: mark api elements gated behind a feature flag in rust doc#22
haraldmaida merged 1 commit into
mainfrom
doc/render-feature-requirements-in-docsrs

Conversation

@haraldmaida
Copy link
Copy Markdown
Member

rustdoc on nightly which is used by docs.rs to render API docs can mark API elements which are gated behind a crate feature with the required feature. With current Rust version this needs some configuration in the codebase.

API elements that are gated behind a crate feature have been configured to be document in rustdoc on nightly.

The Just-job for generating API docs (just doc) has been configured to tell rustdoc to generate the feature flags in the docs.

@haraldmaida haraldmaida added the documentation Improvements or additions to documentation label Apr 21, 2025
@haraldmaida haraldmaida self-assigned this Apr 21, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.05%. Comparing base (2fe5634) to head (d2d6b83).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   94.05%   94.05%           
=======================================
  Files          24       24           
  Lines        2272     2272           
  Branches     2272     2272           
=======================================
  Hits         2137     2137           
  Misses        129      129           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@haraldmaida haraldmaida merged commit b496085 into main Apr 21, 2025
18 checks passed
@haraldmaida haraldmaida deleted the doc/render-feature-requirements-in-docsrs branch April 21, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant