Crate naming confusion - use underscores always. E.g. tokio-core and serde_derive #44909
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
We need to make things a bit more consistent: 'extern' crate name should equal crate name in the toml file.
For example: tokio-core and serde_derive are both valid crate names.
But
is a compile error as it's not a valid rust name. Instead we have to use underscore:
Can we ban new crates being published on crates.io with hyphens so that we only have underscores. (Or alternatively ban underscores and only have hyphens). Worst case, can we ensure that no one can publish a crate called tokio_core if there is already a tokio-core as this is a security risk of someone publishing a malicious crate.
The text was updated successfully, but these errors were encountered: