serai-runtime has a build.rs which achieves host-independent reproducible builds of serai-runtime's WASM blob. It does so via injecting itself as the RUSTC_WRAPPER, and due to my care with it, even supports interoperability with clippy.
While it was written for our WASM blob, and has some design decisions due to being for our WASM blob, that doesn't change most of its skeleton could actually be used by any Rust project, for any purpose. It would just require extraction and polishing to that end. It would be good to do this as a community service, and to allow collaboration on expanding and ensuring its functionality.
serai-runtimehas abuild.rswhich achieves host-independent reproducible builds ofserai-runtime's WASM blob. It does so via injecting itself as theRUSTC_WRAPPER, and due to my care with it, even supports interoperability withclippy.While it was written for our WASM blob, and has some design decisions due to being for our WASM blob, that doesn't change most of its skeleton could actually be used by any Rust project, for any purpose. It would just require extraction and polishing to that end. It would be good to do this as a community service, and to allow collaboration on expanding and ensuring its functionality.