Files
serai/substrate/runtime
Luke Parker b791256648 Remove substrate-wasm-builder
By defining our own build script, we gain complete clarity and control over how
the WASM is built. This also removes the need to patch the upstream due to it
allowing pollution of the environment variables from the host.

Notable appreciation is given to
https://github.com/rust-lang/rust/issues/145491 for identifying an issue
encountered here, with the associated PR clarifying the necessary flags for the
linker to fix this.
2025-12-04 23:23:38 -05:00
..
2025-12-04 23:23:38 -05:00
2025-12-04 23:23:38 -05:00
2025-12-04 23:23:38 -05:00
2025-08-25 10:06:35 -04:00
2025-09-02 02:17:10 -04:00

Serai Runtime

The on-chain rules for the Serai blockchain.

Compilation

If compilation fails due to borsh, this is likely due to attempting to compile to WASM binary (no-std) while borsh believes it's being compiled in a std context. Serai uses a patched substrate-wasm-builder which clears the CARGO_FEATURE_STD environment variable to prevent this, yet target/ directories may be contaminated if a build ever occurs without the patched substrate-wasm-builder. Please attempt a clean build to resolve the error.