Hi Ray,
Thanks for asking and for your concern. I'm very happy to clarify.
I registered about ~30 of such package names. Most of those (like it
and install
) I registered with the intention of never using them. I was afraid that someone might read somewhere a sentence like
If you want to use a program you see in the Rust community, you can cargo install it
and they might actually type cargo install it
in their terminal, with potential disastrous consequences if a malicious actor owned it
. I think this might easily happen when you've not been able to catch enough sleep, or if English is not your first language.
Rather than wait for accidents to happen, I came up with a list of such packages that might be installed accidentally, and registered them myself. I would be very happy if the crates.io maintaners would blacklist those package names. I came up with the package names by googling "cargo install" and seeing what word people typically write next. The packages are intentionally libraries so that a command like cargo install it
will give you an error and alert you that you're being a moron. (A small number are binaries, because I didn't think of this trick from the start.)
Then there is a second category of packages like miri
that sound official, but weren't yet registered. Package miri
in particular stood out to me, because I watched a talk that seemed to suggest to cargo install miri
, yet the package miri
was unregistered. I am more than happy to cede control of such packages to people I trust, like the person who mentioned it in their talk.
While making my list for the first category, I noticed that some similar package names were already registered. In particular, https://crates.io/users/mahkoh seems to have registered a lot of similar packages. I also realised that there is currently no (easy) way to download a package's contents from the crates.io web interface (nor see its history), and so it's hard to inspect if a package's contents is currently malicious. This worries me a bit, but it's beside the point.
Regarding the tools
package: I understand that you would like to have it, but I'm sure it is not the only package name that you could use. In my judgement, such a package should contain something official like "the Cargo tools". If anyone wants to use the package name for something like that, and the community trusts that person, then I'm happy to give them the package name.
What happens when weight loss spammers start posting advert links into the crate text?
I'll leave that for others to discuss