Closed Bug 1764659 Opened 3 years ago Closed 3 years ago

Updatebot should be able to update wgpu Rust crate

Categories

(Developer Infrastructure :: Mach Vendor & Updatebot, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jimb, Assigned: tjr)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We would like to use Updatebot to update Firefox's use of the wgpu Rust crate.

Firefox's implementation of the WebGPU API is based on the wgpu Rust crate, which depends in turn on various other crates. As both the API and implementation are evolving quickly, we should be frequently importing new versions of wgpu into Firefox. I recently did an upgrade that brought in three months' work at once, and it was a pain.

Specifically, in the Firefox sources, gfx/wgpu_bindings/Cargo.toml includes dependencies on specific revisions of wgpu-core, wgpu-types, and wgpu-hal. These are all retrieved from the repository https://github.com/gfx-rs/wgpu, which has them as workspace members.

Given a revision from that repository that we wish to use, updating Firefox's use of wgpu requires two steps:

  • Update the commit shas for in the [dependencies.wgc], [dependencies.wgt], and [dependencies.wgh] in gfx/wgpu_bindings/Cargo.toml.

  • Run mach vendor rust --ignore-modified.

Then the tree should build in the usual way with mach build.

Although most updates will build without error, the wgpu crates do not yet have a stable API, so changes to Firefox's code are sometimes necessary. It would be nice to know this as soon as possible.

It might work nicely to check for new commits to the wgpu master branch daily.

Depends on: 1764813

Depends on D143765

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: