-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-pluginsArea: compiler plugins, doc.rust-lang.org/nightly/unstable-book/language-features/plugin.htmlArea: compiler plugins, doc.rust-lang.org/nightly/unstable-book/language-features/plugin.htmlC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
Currently the only way to load plugins is by having #[phase(plugin)] extern crate foo;
in the source, but one can easily have plugins (lints etc.) that make sense to only load occasionally or that make sense to load into external crates in an automated fashion, where editing the source is hard (E.g. my spellck lint).
This could be something like -Z plugin=spellck -Z plugin=grammarck
etc. (-Z
since presumably this will be unstable.)
Metadata
Metadata
Assignees
Labels
A-pluginsArea: compiler plugins, doc.rust-lang.org/nightly/unstable-book/language-features/plugin.htmlArea: compiler plugins, doc.rust-lang.org/nightly/unstable-book/language-features/plugin.htmlC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.