bazelbuild / bazelbuild/rules_rust
`crates_vendor` ignores package renames in Cargo.toml for aliases
Open
crate-universe
needs-triage
- Dominant language
- Starlark
- Stars
- 843
- Forks
- 651
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 15
Description
For example, this entry in Cargo.toml:
```
[dependencies.async_trait]
package = "async-trait"
version = "0.1.51"
default_features = false
features = []
```
Will generate an alias such as:
```
alias(
name = "async-trait",
actual = "@crates__async-trait-0.1.57//:async_trait",
tags = ["manual"],
)
```
Whereas I'd expect the name to be `async_trait` (vs `async-trait`).
Contributor guide
Assessment
This issue has not been assessed yet.