Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API review: enable all features in the C++ docs #5592

Merged
merged 6 commits into from
Jul 11, 2024
Merged

Conversation

tronical
Copy link
Member

And make sure that functions excluded when freestanding is enabled are included in the docs.

And make sure that functions excluded when freestanding is enabled are included in the docs.
@@ -86,11 +86,11 @@ pub fn generate(show_warnings: bool) -> Result<(), Box<dyn std::error::Error>> {
let enabled_features = cbindgen::EnabledFeatures {
Copy link
Member

Choose a reason for hiding this comment

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

we could make a cbindgen::EnabledFeatures::all_true() constructor.

But no, because some of the features are still false.

experimental: false,
system_testing: true,
freestanding: true,
experimental: true,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe not experimental...
Right now that's only the test framework which is already documented anyway.
But if we add stuff as experimental, I'm not sure we want to have it in the docs. Or what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's a double edged sword. If we want feedback on an experiment, then we need to make it easy for people to opt into the experiment, so that they can use it and provide feedback (even feedback on the docs). On the other hand, yes, this gives the impression that this is an API ready for use. It won't work at compile-time, but it's in the docs.

I'll set it back to false for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right now that's only the test framework which is already documented anyway.

It's documented, but the documentation is not rendered as ... the experimental feature is false ;)

Copy link
Member

Choose a reason for hiding this comment

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

Ah right, because #5398 hasn't been merged.

tronical and others added 5 commits July 10, 2024 15:29
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@tronical tronical merged commit 27dc6e5 into master Jul 11, 2024
38 checks passed
@tronical tronical deleted the simon/cppdocs-fixes branch July 11, 2024 06:29
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.

2 participants