Confirmed users
156
edits
(→Vital stats: priority defs) |
(Update instructions for modifying vendored code) |
||
Line 67: | Line 67: | ||
Sometimes when hacking on Quantum Render, you'll need to make a change to one of the upstream dependencies of the webrender library (say for example [https://github.com/servo/euclid euclid]). However, you may need to test out your changes in the QR build. The way to do this is not obvious, because the QR build uses the vendored copy of euclid (in third_party/rust/euclid) which you can't directly modify without violating the checksum checks. Instead, what you need to do is this: | Sometimes when hacking on Quantum Render, you'll need to make a change to one of the upstream dependencies of the webrender library (say for example [https://github.com/servo/euclid euclid]). However, you may need to test out your changes in the QR build. The way to do this is not obvious, because the QR build uses the vendored copy of euclid (in third_party/rust/euclid) which you can't directly modify without violating the checksum checks. Instead, what you need to do is this: | ||
In $MOZILLA_ROOT/Cargo.toml, there should be a section at the bottom called [patch.crates-io]. Add an entry like so: | |||
[patch.crates-io] | |||
... | |||
euclid = { path = "third_party/rust/euclid" } | |||
Then run ./mach vendor rust | |||
== Hacking == | == Hacking == |