Can Cargo.toml tell Cargo rustc to include plugins?
2 answers
There is no way to do this using cargo
(without editing the source), but this is definitely what I would like too. The use case I can imagine is that some users want to disallow certain patterns in all dependencies, for example. perhaps an outlaw unsafe
that is not whitelisted, or even go further by requiring anyone to unsafe
be verified .
The compiler has partial support for this in the form rustc -Z extra-plugins=...
, but Cargo doesn't show anything like it yet.
I opened # 1579 .
+5
source to share