Open Bug 1560153 Opened 6 years ago Updated 3 years ago

Vendor rust code to build WebAssembly files

Categories

(Firefox Build System :: General, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: yury, Unassigned)

Details

(Keywords: in-triage)

In spirit of Oxidation, it will be nice to build .wasm files in the tree that are build from Rust sources. Currently there are couple of binary wasm files in /devtools that checked in the tree: (source-map/lib/)mappings.wasm and dwarf_to_json.wasm. The files are built using rustc --target=wasm32-unknown-unknown ... --lib from some crates and checked in as binaries. There are cons and pros in building wasm files during FF build.

Pros:

  • The wasm output evolves as rust updates: better performance or size
  • Repeatable (non-local machine) builds
  • Vendored crates
  • Possibility to re-configure the wasm output to have debug information

Cons:

  • The wasm output evolves as rust updates: possible breakages
  • The 'mappings.wasm' out-of-tree users (part of the source-map JS library) may have different wasm binary.
Severity: normal normal → S3 S3
You need to log in before you can comment on or make changes to this bug.