Do not depend on native runtimes for `RuntimeApi` (#7451)
* Implement runtime apis for fake runtime These runtime api implementations are only used to make the compiler think that we have implemented all required runtime apis. They will not be called as we switch the executor to `WasmExecutor`. In the near future we will not require these fake implementations anymore after Substrate has shifted away from this compile time requirement. This brings us the advantage that the `polkadot-service` doesn't need to depend on the runtimes for getting the `RuntimeApi` type. It also removes around 1min of build time on my machine ;) * Fix warning * FMT * ".git/.scripts/commands/fmt/fmt.sh" * Use more descriptive id * Fix warnings * Adapt path * Fix--------- Co-authored-by: command-bot <>
Showing
- polkadot/Cargo.lock 101 additions, 57 deletionspolkadot/Cargo.lock
- polkadot/Cargo.toml 1 addition, 2 deletionspolkadot/Cargo.toml
- polkadot/cli/Cargo.toml 1 addition, 3 deletionspolkadot/cli/Cargo.toml
- polkadot/cli/src/command.rs 18 additions, 59 deletionspolkadot/cli/src/command.rs
- polkadot/cli/src/lib.rs 0 additions, 2 deletionspolkadot/cli/src/lib.rs
- polkadot/node/client/Cargo.toml 0 additions, 63 deletionspolkadot/node/client/Cargo.toml
- polkadot/node/client/src/benchmarking.rs 0 additions, 390 deletionspolkadot/node/client/src/benchmarking.rs
- polkadot/node/client/src/lib.rs 0 additions, 590 deletionspolkadot/node/client/src/lib.rs
- polkadot/node/service/Cargo.toml 15 additions, 9 deletionspolkadot/node/service/Cargo.toml
- polkadot/node/service/src/benchmarking.rs 430 additions, 0 deletionspolkadot/node/service/src/benchmarking.rs
- polkadot/node/service/src/chain_spec.rs 41 additions, 3 deletionspolkadot/node/service/src/chain_spec.rs
- polkadot/node/service/src/fake_runtime_api.rs 398 additions, 0 deletionspolkadot/node/service/src/fake_runtime_api.rs
- polkadot/node/service/src/lib.rs 112 additions, 281 deletionspolkadot/node/service/src/lib.rs
- polkadot/node/test/client/Cargo.toml 3 additions, 0 deletionspolkadot/node/test/client/Cargo.toml
- polkadot/node/test/client/src/block_builder.rs 2 additions, 1 deletionpolkadot/node/test/client/src/block_builder.rs
- polkadot/node/test/client/src/lib.rs 17 additions, 3 deletionspolkadot/node/test/client/src/lib.rs
- polkadot/node/test/service/Cargo.toml 0 additions, 2 deletionspolkadot/node/test/service/Cargo.toml
- polkadot/node/test/service/src/lib.rs 5 additions, 31 deletionspolkadot/node/test/service/src/lib.rs
- polkadot/tests/purge_chain_works.rs 11 additions, 11 deletionspolkadot/tests/purge_chain_works.rs
Please register or sign in to comment