-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cap-lints when building rustdoc JSON #357
Conversation
Was bit by this when using
|
Wow, thanks -- this is awesome, I didn't know it existed and we've needed something like it before. A couple of questions:
|
It doesn't trigger a rebuild for me atleast got this specifically on |
Awesome!
If you don't mind specifying a repo and gitsha for that, we can add it as a test like that too. It doesn't have to be published, we'll just check out that commit specifically and use the |
here's the commit da7c6cc60963cf47a9f8e9394744eaf14643b488 on https://github.com/twitch-rs/twitch_api |
RUSTFLAGS affects all dependencies, including dependencies not in the workspace. RUSTDOCFLAGS is only passed to rustdoc, so it only affects crates in the workspace, since you're passing |
Thanks @jyn514, that makes sense! I'll add the test case to this PR shortly and then merge. |
just fyi, maybe not the best test case to check for only this, since it seems on the current main to take a loong time to lint the crate :3 |
Thanks for the heads-up! I'll take a look at why it's taking so long, hopefully something I might be able to fix while I'm at it. |
Good news and bad news on the slow check time. The good news is that I know what the problem is and I have a solution in mind that's guaranteed to fix it: https://predr.ag/blog/speeding-up-rust-semver-checking-by-over-2000x/ It's because Bad news: it's not something I'll be able to fix today or this week. It needs a bit more polishing and, while I'm doing the best I can, I'm stretched quite thin. I'll try to tweak some of the queries to see if I can get some quicker wins in the meantime. |
Due to using
--document-private-items --document-hidden-items
, some new warnings not previously found by the creator(s) of a crate can be triggered as most do not check that rustdoc builds when documenting private/hidden items.This also happens when rustdoc behaviour changes between versions, see obi1kenobi/cargo-semver-checks-action#17
This fixes that