bazelbuild / bazelbuild/rules_rust

`crates_vendor` ignores package renames in Cargo.toml for aliases

Open
#1,515 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.