lowRISC / lowRISC/opentitan

[bazel build] rules_rust version is fairly old, upgrade to get new features

Open
#30,070 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

Description

the bazel build currently uses rules_rust 0.59.2
I have had need to use features that are only available in rules_rust 0.70.0, although fortunately only for testing things on my local machine

I have made efforts to upgrade to 0.70.0: https://github.com/lowRISC/opentitan/pull/30030
unfortunately the latest rules_rust makes use of rules_python, which tries to fetch python package metatdata at build time, which breaks the airgapped build

We need to patch rules_rust to not do this, if we want to upgrade it. currently we can safely stay on the older version.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading pull request 30030 and the current Bazel dependency setup for rules_rust 0.59.2. Trace how rules_rust 0.70.0 brings in rules_python and fetches package metadata, then verify that the upgraded build still works in the airgapped configuration without that network access.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
build-system
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.