bazelbuild / bazelbuild/rules_rust

Update crate_universe to handle workspace and package resolver definitions

Open
#2,067 0 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

Currently if a package specifies `resolver` there's a risk users could run into the following Cargo error.
```
INFO: Running command line: bazel-bin/wasm_bindgen/3rdparty/crates_vendor.sh '--repin=full'

error: failed to parse manifest at `/tmp/.tmpQivIHn/Cargo.toml`

Caused by:
cannot specify `resolver` field in both `[workspace]` and `[package]`

Error: Failed to update lockfile: exit status: 101
```

crate_universe should be updated to help users avoid this and not require patching out `resolver` in `Cargo.toml` files.

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.