Cargo.toml 可以让 Cargo 告诉 rustc 包含插件吗?
Can Cargo.toml have Cargo tell rustc to include plugins?
假设我想通过 rust-clippy 对我的所有代码进行 lint。现在,我必须写
#![feature(plugin)]
#![plugin(clippy)]
在我的每个来源中。我可以以某种方式配置 Cargo 以让 rustc 使用该插件而无需将其添加到我的源文件中吗?如果可以,怎么做?
假设我想通过 rust-clippy 对我的所有代码进行 lint。现在,我必须写
#![feature(plugin)]
#![plugin(clippy)]
在我的每个来源中。我可以以某种方式配置 Cargo 以让 rustc 使用该插件而无需将其添加到我的源文件中吗?如果可以,怎么做?