-
-
Notifications
You must be signed in to change notification settings - Fork 224
Docs don't inform that given class is gated behind experimental-godot-api
feature
#1163
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
Comments
Also, |
This suggests that it's a nightly feature. Not sure how it could've worked before, though. https://users.rust-lang.org/t/how-to-document-optional-features-in-api-docs/64577/3 |
That's not the problem though, our invocation has used In essence, in a post-processing step we parse Ideally it should also work for https://docs.rs/godot, which is handled in this CI workflow. |
so silly – we just need to pass
|
Nice, thanks a lot! Do you know if this changed recently, as it used to work? Or did we accidentally change it? |
The issue was on our side – we started gating docs behind cfg attribute I also messed for a while with |
Wait, but for Line 58 in 4d2251b
Is And for the website workflow, we have the following. So the issue is that we use export RUSTFLAGS="--cfg published_docs -A unused_imports -A dead_code -A ..." |
Huh, it confused me too – as the https://docs.rs/about/metadata states: You can customize docs.rs builds by defining (…) it is for customizing docs.rs builds (the one for these docs: https://docs.rs/godot/latest/godot/index.html). Good that you reminded me about it tho, we need to add
I haven't dig into rustdoc behavior (and I don't intent so) but from what I see it is still required. while doubling it with Rustflags results in propagating this cfg value to all the built crates: (I could probably use find or something instead of print screen, but I'm too lazy). |
All good, let's not spend too much time on this 🙂 |
Another random bit I just found: Merged years ago, but in my testing last year I don't think this was the case? It's still nightly-only, but I wonder if we need something special to activate it? |
Yeah, for some reason I couldn't get it to work (obviously I edited macros, codegen, lib.rs feature activation and whatnot). We can open issue for that later, for now I would just like to fix (not solve) the problem. |
Back in June of 2024 docs were informing if given class was gated behind feature or not:
image from 19.06.2024
Nowadays they don't do so despite the fact that given classes are still gated behind said feature:
image from 13.05.2025
https://godot-rust.github.io/docs/gdext/master/godot/classes/struct.NavigationAgent2D.html
list of experimental classes
The text was updated successfully, but these errors were encountered: