-
Notifications
You must be signed in to change notification settings - Fork 198
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
rustdoc-args
is ignored for proc_macro crates
#2374
Comments
rustdoc-args
is ignored for proc\_macro cratesrustdoc-args
is ignored for proc_macro crates
You can see we pass it along to cargo: https://docs.rs/crate/attr_alias/0.1.0/builds/1075851, it must be ignoring it for some reason though, probably related to the weirdness of a |
@Nemo157 Agreed, my description could have been clearer. I updated it to make that point more obvious. |
This is much bigger than just the |
Ah no, it's because |
Crate name
attr_alias
Build failure link
https://docs.rs/crate/attr_alias/0.1.0/builds/1075851
Additional details
The build did not fail, but this still appeared to be the best template, as the build did not work as expected.
For proc_macro crates, docs.rs avoids passing
--target
for builds:docs.rs/src/docbuilder/rustwide_builder.rs
Lines 830 to 833 in b0f6fea
From what I can tell, for library crates, this fixes an issue of
rustdoc-args
being ignored when passed asbuild.rustdocflags
torustdoc
. However, regardless of whether--target
is passed,rustdoc-args
is ignored for proc_macro crates.For example, Cargo.toml for attr_alias includes:
attr_alias::attr_alias
also has the attribute:#[cfg_attr(attr_alias_docs_rs, doc(cfg(feature = "nightly")))]
Therefore,
attr_alias::attr_alias
should be documented to require the "nightly" feature, but the note is missing, sincerustdoc-args
was ignored:https://docs.rs/attr_alias/0.1.0/attr_alias/attr.attr_alias.html
The text was updated successfully, but these errors were encountered: