Page MenuHomePhabricator

Upgrade to Rust 1.85
ClosedPublic

Authored by ashoat on Feb 26 2025, 12:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 1, 9:33 AM
Unknown Object (File)
Mon, Mar 31, 9:53 PM
Unknown Object (File)
Mon, Mar 31, 6:54 PM
Unknown Object (File)
Mon, Mar 31, 3:42 PM
Unknown Object (File)
Mon, Mar 31, 2:38 AM
Unknown Object (File)
Sun, Mar 30, 10:23 PM
Unknown Object (File)
Sun, Mar 30, 11:34 AM
Unknown Object (File)
Sun, Mar 16, 1:01 PM
Subscribers

Details

Summary

This addresses ENG-10270.

Changes here:

  1. Upgrade everything to Rust 1.85.
  2. In order to address ENG-9892:
    • We need to bump our Webpack version (see here).
    • We also need to use a higher version of binaryen than the one we're getting from apt-get, so I introduced a script to download a later version binary.
    • Finally, we need to pass --reference-types to wasm-pack.
Test Plan
  1. Confirmed CI passes
  2. Confirmed I can build the keyserver Docker image locally on my macOS device
  3. On my personal server, built the keyserver Docker image and deployed a web app publicly at https://comm.software/, which is connected to my authoritative keyserver on AWS (running the earlier keyserver image 153). Played around with it a bit, including logged out and back in via QR code.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat held this revision as a draft.

Try adding --reference-types to web/scripts/run-wasmpack.sh

Install a later version of binaryen

ashoat published this revision for review.Feb 26 2025, 2:44 PM
ashoat edited the summary of this revision. (Show Details)

I'm not entirely sure what functionality I should be testing to verify that backup-client-wasm still works correctly on web. If reviewers have any context here, please feel free to test that functionality on https://comm.software/

Rust update looks good to me


I'm not entirely sure what functionality I should be testing to verify that backup-client-wasm still works correctly on web. If reviewers have any context here, please feel free to test that functionality on https://comm.software/

As long as it compiles and web runs, it should be okay.
The only place this is used on web is Settings -> Account Settings -> Backup menu -> Test restore backup, but I'm unsure where to get correct values from and if this code is even supposed to work at this moment. cc @kamil
At this moment it fails this way, likely because https://comm.software isn't added to CORS config on services (created ENG-10272):

Screenshot 2025-02-27 at 10.27.11.png (1×1 px, 267 KB)

This revision is now accepted and ready to land.Feb 27 2025, 1:46 AM

Okay, in order to fix CI and unblock the builds, I'll go ahead and land this on the assumption that things are working. I've created a task to confirm that it's working once things are deployed in production; assigned to @bartek for now since @kamil is out sick.

This revision was automatically updated to reflect the committed changes.