rust-lang / rust-clippy

A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
https://rust-lang.github.io/rust-clippy/
Other
11.44k stars 1.54k forks source link

consider making clippy_lints into a dylib for faster recompilation. #12977

Open lolbinarycat opened 4 months ago

lolbinarycat commented 4 months ago

Description

cargo currently rebuilds all dependants of a crate instead of just relinking.

when only changing the implementation of a lint, this is unnecessary.

using dylib or cdylib should make it possible to just relink when adding/modifying lints, although it may require slight modifications of the api. if i understand correctly, register_plugins is the only function that really needs to be public, with all the lint structs being basically an implementation detail. this is a unique situation and should allow optimizing the build process.

Version

No response

Additional Labels

No response

alex-semenyuk commented 2 months ago

@rustbot label C-enhancement