bazelbuild / bazelbuild/rules_rust

crates_vendor doesn't support build metadata in version strings

Open
#2,620 1 comment 0 reactions 0 assignees View on GitHub
awaiting-response crate-universe needs-triage
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

In my Cargo.toml, I have:
```
proc-macro-hack = "0.5.20+deprecated"
```

crates_vendor downloads the crate into `proc-macro-hack-0.5.20+deprecated`, however the generated rules replace the "+" with a "-", causing errors.

```
alias(
name = "proc-macro-hack",
actual = "//third_party/cargo/registry/bazel/no_std/vendor/proc-macro-hack-0.5.20-deprecated:proc_macro_hack",
tags = ["manual"],
)
```

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.