Upgrade to UniFFI 0.29.1
Categories
(Toolkit :: UniFFI Bindings, task)
Tracking
()
People
(Reporter: janerik, Assigned: ErichDonGubler)
References
Details
Attachments
(1 file)
In bug 1950665 we did try to upgrade to 0.29.1 straight away.
However that brought in #[unsafe()] annotations and those require Rust 1.82.0 and while we build Firefox on 1.82.0 the TSAN/ASAN tasks use a dev build of rust, to apply additional patches, that is kinda-but-not-really 1.82.0, just before #[unsafe()] got stable.
See also https://bugzilla.mozilla.org/show_bug.cgi?id=1945020#c8
We need that resolved before we can bring in uniffi 0.29.1 (and later). And probably other crates as they migrate to MSRV 1.82.0
try run where we hit that: https://treeherder.mozilla.org/jobs?repo=try&revision=ec5542a75471592a52811fa343f77ac97d2ed330
logs:
| Assignee | ||
Comment 1•9 months ago
|
||
We might be able to unblock this by cherry picking patches for unsafe attributes against the nightly Rust toolchain versionwe use . I'm not sure if that would result in a correct toolchain, but we can at least try it; the patch for stabilizing applies cleanly, at any rate.
NI'ing :glandium for thoughts.
| Assignee | ||
Comment 2•9 months ago
•
|
||
It looks like rust#128771 stabilized unsafe attributes, and was only 3ish days after the commit that we're using for sanitizer builds. I strongly suspect this will work, if unsafe attributes are all that is necessary. I'll file a patch.
| Assignee | ||
Comment 3•9 months ago
|
||
| Assignee | ||
Comment 4•9 months ago
|
||
Aha, here's the Try push I just did with the patch I attached in comment 3: try:9bb5838dfd75
Looking good! I'll just punt the NI to a review from :glandium now.
Updated•9 months ago
|
| Assignee | ||
Updated•9 months ago
|
Comment 6•9 months ago
|
||
| bugherder | ||
| Reporter | ||
Comment 7•9 months ago
|
||
I put a try run on today with the uniffi 0.29.1 update applied (among the other glean & a-s update): https://treeherder.mozilla.org/jobs?repo=try&revision=5c97b03666dfa646f9c111dec6c15cada3feb4a6
Both asan and tsan seems to be passing now. We can probably pull in 0.29.1 along with the Glean update. So I'll probably do that as part of re-landing bug 1953191
| Assignee | ||
Comment 8•9 months ago
|
||
That sounds encouraging! I'm glad I could help. 🙂
| Reporter | ||
Comment 9•9 months ago
|
||
Happened in bug 1950665
Updated•9 months ago
|
Updated•6 months ago
|
Description
•