Updatebot should be able to update wgpu Rust crate
Categories
(Developer Infrastructure :: Mach Vendor & Updatebot, enhancement)
Tracking
(Not tracked)
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]ingfx/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.
| Assignee | ||
Comment 1•3 years ago
|
||
Depends on D143765
Comment 4•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c1d6ed85eff4
https://hg.mozilla.org/mozilla-central/rev/18b126507926
Description
•