Update the polkadot-sdk used

Removes `parity-wasm` as a dependency, closing
https://github.com/serai-dex/issues/227 and tidying our `deny.toml`.

This removes the `import-memory` flag from the linker as part of
`parity-wasm`'s usage was to map imports into exports
(5a1128b94b/substrate/client/executor/common/src/runtime_blob/runtime_blob.rs (L91-L142)).
This commit is contained in:
Luke Parker
2025-12-07 14:58:12 -05:00
parent 2fb90ebe55
commit 50959fa0e3
4 changed files with 142 additions and 160 deletions

292
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,8 +7,7 @@ db-urls = ["https://github.com/rustsec/advisory-db"]
yanked = "deny" yanked = "deny"
ignore = [ ignore = [
"RUSTSEC-2022-0061", # https://github.com/serai-dex/serai/227 "RUSTSEC-2024-0370", # `proc-macro-error` is unmaintained, in-tree due to Substrate/`litep2p`
"RUSTSEC-2024-0370", # proc-macro-error is unmaintained
"RUSTSEC-2024-0436", # paste is unmaintained "RUSTSEC-2024-0436", # paste is unmaintained
] ]

View File

@@ -9,7 +9,7 @@ fn main() {
// https://github.com/rust-lang/rust/issues/145491 // https://github.com/rust-lang/rust/issues/145491
const ONE_45491: &str = "-C link-arg=--mllvm=-mcpu=mvp,--mllvm=-mattr=+mutable-globals"; const ONE_45491: &str = "-C link-arg=--mllvm=-mcpu=mvp,--mllvm=-mattr=+mutable-globals";
const WASM: &str = "-C link-arg=--export-table"; const WASM: &str = "-C link-arg=--export-table";
const REQUIRED_BY_SUBSTRATE: &str = "--cfg substrate_runtime -C link-arg=--import-memory"; const REQUIRED_BY_SUBSTRATE: &str = "--cfg substrate_runtime";
const SAFETY: &str = "-C overflow-checks=true -C panic=abort"; const SAFETY: &str = "-C overflow-checks=true -C panic=abort";
const COMPILATION: &str = const COMPILATION: &str =
"-C symbol-mangling-version=v0 -C embed-bitcode=false -C linker-plugin-lto=true"; "-C symbol-mangling-version=v0 -C embed-bitcode=false -C linker-plugin-lto=true";

View File

@@ -73,11 +73,10 @@ impl frame_system::Config for Runtime {
// We assume `serai-node` will be run using the RocksDB backend // We assume `serai-node` will be run using the RocksDB backend
type DbWeight = frame_support::weights::constants::RocksDbWeight; type DbWeight = frame_support::weights::constants::RocksDbWeight;
/* /*
Serai does not expose `frame_system::Call` nor does it use transaction extensions. We Serai does not expose `frame_system::Call`. We accordingly have no consequence to using the
accordingly have no consequence to using the default weights for these accordingly. default weights for these accordingly.
*/ */
type SystemWeightInfo = (); type SystemWeightInfo = ();
type ExtensionsWeightInfo = ();
// We also don't use `frame_system`'s account system at all, leaving us to bottom these out. // We also don't use `frame_system`'s account system at all, leaving us to bottom these out.
type AccountData = (); type AccountData = ();