]> git.lizzy.rs Git - rust.git/commit
Encode a custom "producers" section in wasm files
authorAlex Crichton <alex@alexcrichton.com>
Mon, 19 Nov 2018 20:05:21 +0000 (12:05 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 19 Nov 2018 20:09:19 +0000 (12:09 -0800)
commit089a50411f3bceb233dd5da8057252ff7b6b47e1
treeea3b35f73181ba90a66fd4e5cb78812da085ad12
parent9e8a982a234532ad9cce7f072d130029df96bebc
Encode a custom "producers" section in wasm files

This commit implements WebAssembly/tool-conventions#65 for wasm files
produced by the Rust compiler. This adds a bit of metadata to wasm
modules to indicate that the file's language includes Rust and the
file's "processed-by" tools includes rustc.

The thinking with this section is to eventually have telemetry in
browsers tracking all this.
src/librustc_codegen_llvm/back/link.rs
src/librustc_codegen_llvm/back/wasm.rs