mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Have serai-runtime compile again
This commit is contained in:
14
substrate/runtime/README.md
Normal file
14
substrate/runtime/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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`](
|
||||
https://github.com/serai-dex/serai/tree/develop/polkadot-sdk/substrate/utils/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.
|
||||
Reference in New Issue
Block a user