News for hackers. Stuff that matters.
Re:Why Cargo Check Is So Slow by echelon on Saturday August 09, 2025 @10:32AM (#44846769)
Feature request: Rust proc macros and compile time statistics need to be called out on crates.io

We're starting to ban them from our Rust monorepo.

Re:Why Cargo Check Is So Slow by tayo42 on Saturday August 09, 2025 @10:40AM (#44846851)
Doesn't that prevent you from using some of the most useful crates?
Re:Why Cargo Check Is So Slow by eveeifyeve on Saturday August 09, 2025 @11:01AM (#44847048)
Kinda but there is good usage of proc macros and bad usage.
Re:Why Cargo Check Is So Slow by kbolino on Saturday August 09, 2025 @01:14PM (#44848267)
In order to collect reliable statistics on compile times, crates.io would have to be doing the compilation themselves. There's no way to trust telemetry from random users, both due to situational variability (individual machine load, overprovisioned CI runner VMs, overcommitted RAM, etc.) and malicious activity. That would mean a significant increase in hosting costs along with a slew of additional work to filter out spam, malware, and DOS attempts, plus building robust data collectors and aggregators.

As to proc macros, I don't think it's possible to implement derive without them. I think it would be fairly easy to detect their presence in a crate at least though.

Both things are also made more complicated by feature flags.

Re:Why Cargo Check Is So Slow by infogulch on Monday August 11, 2025 @12:05PM (#44865828)
Could we use crater runs?
Re:Why Cargo Check Is So Slow by amy_petrik on Sunday August 10, 2025 @07:12PM (#44859233)
we leave poor performance stats and correction as an excercise to the user