Hacker News new | ask | show | jobs
by Manishearth 3457 days ago
To be clear, clippy can't ever be a true "stable" crate. What clippy does is rely on a whole ton of compiler internals so that it does not have to reimplement the compiler. These internals change, because the rust compiler is under active development.

The plan for "stable" clippy is to bundle it with releases, precompiled. It will still use the internal APIs, but from a user's perspective they just have to `rustup component add clippy` and it will magically work.

2 comments

Ballpark ETA on being able to install a precompiled clippy with rustup like that?
It's "phase 2" of https://internals.rust-lang.org/t/rust-ci-release-infrastruc...

We've got a good idea of how it will happen, but the infra stuff has to happen first -- nobody wants to complicate the existing infra if it's going to go away.

I don't have a clear timeline on that. A few months I guess.

On clippy's side we don't need many changes to make this work.

`rustup component add clippy`

Whoa, that's the first I've heard about this. Very exciting plans!