mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 13:37:57 +00:00
remove disable-runtime-api (#1328)
This commit is contained in:
@@ -338,12 +338,6 @@ try-runtime = [
|
||||
"runtime-parachains/try-runtime",
|
||||
"sp-runtime/try-runtime",
|
||||
]
|
||||
# When enabled, the runtime API will not be build.
|
||||
#
|
||||
# This is required by Cumulus to access certain types of the
|
||||
# runtime without clashing with the runtime API exported functions
|
||||
# in WASM.
|
||||
disable-runtime-api = []
|
||||
|
||||
# A feature that should be enabled when the runtime should be build for on-chain
|
||||
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
|
||||
|
||||
@@ -139,10 +139,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
authoring_version: 2,
|
||||
spec_version: 9430,
|
||||
impl_version: 0,
|
||||
#[cfg(not(feature = "disable-runtime-api"))]
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
#[cfg(feature = "disable-runtime-api")]
|
||||
apis: sp_version::create_apis_vec![[]],
|
||||
transaction_version: 23,
|
||||
state_version: 1,
|
||||
};
|
||||
@@ -1820,7 +1817,6 @@ mod benches {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "disable-runtime-api"))]
|
||||
sp_api::impl_runtime_apis! {
|
||||
impl sp_api::Core<Block> for Runtime {
|
||||
fn version() -> RuntimeVersion {
|
||||
|
||||
@@ -307,12 +307,6 @@ try-runtime = [
|
||||
"runtime-parachains/try-runtime",
|
||||
"sp-runtime/try-runtime",
|
||||
]
|
||||
# When enabled, the runtime API will not be build.
|
||||
#
|
||||
# This is required by Cumulus to access certain types of the
|
||||
# runtime without clashing with the runtime API exported functions
|
||||
# in WASM.
|
||||
disable-runtime-api = []
|
||||
|
||||
# A feature that should be enabled when the runtime should be build for on-chain
|
||||
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
|
||||
|
||||
@@ -130,10 +130,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
authoring_version: 0,
|
||||
spec_version: 9430,
|
||||
impl_version: 0,
|
||||
#[cfg(not(feature = "disable-runtime-api"))]
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
#[cfg(feature = "disable-runtime-api")]
|
||||
apis: sp_version::create_apis_vec![[]],
|
||||
transaction_version: 24,
|
||||
state_version: 0,
|
||||
};
|
||||
@@ -1599,7 +1596,6 @@ mod benches {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "disable-runtime-api"))]
|
||||
sp_api::impl_runtime_apis! {
|
||||
impl sp_api::Core<Block> for Runtime {
|
||||
fn version() -> RuntimeVersion {
|
||||
|
||||
@@ -282,12 +282,6 @@ try-runtime = [
|
||||
"runtime-parachains/try-runtime",
|
||||
"sp-runtime/try-runtime",
|
||||
]
|
||||
# When enabled, the runtime API will not be build.
|
||||
#
|
||||
# This is required by Cumulus to access certain types of the
|
||||
# runtime without clashing with the runtime API exported functions
|
||||
# in WASM.
|
||||
disable-runtime-api = []
|
||||
|
||||
# Set timing constants (e.g. session period) to faster versions to speed up testing.
|
||||
fast-runtime = []
|
||||
|
||||
@@ -116,10 +116,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
authoring_version: 0,
|
||||
spec_version: 9430,
|
||||
impl_version: 0,
|
||||
#[cfg(not(feature = "disable-runtime-api"))]
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
#[cfg(feature = "disable-runtime-api")]
|
||||
apis: sp_version::create_apis_vec![[]],
|
||||
transaction_version: 22,
|
||||
state_version: 1,
|
||||
};
|
||||
@@ -1647,7 +1644,6 @@ mod benches {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "disable-runtime-api"))]
|
||||
sp_api::impl_runtime_apis! {
|
||||
impl sp_api::Core<Block> for Runtime {
|
||||
fn version() -> RuntimeVersion {
|
||||
|
||||
@@ -311,12 +311,6 @@ try-runtime = [
|
||||
"runtime-parachains/try-runtime",
|
||||
"sp-runtime/try-runtime",
|
||||
]
|
||||
# When enabled, the runtime API will not be build.
|
||||
#
|
||||
# This is required by Cumulus to access certain types of the
|
||||
# runtime without clashing with the runtime API exported functions
|
||||
# in WASM.
|
||||
disable-runtime-api = []
|
||||
|
||||
# Set timing constants (e.g. session period) to faster versions to speed up testing.
|
||||
fast-runtime = []
|
||||
|
||||
@@ -121,10 +121,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
authoring_version: 2,
|
||||
spec_version: 9430,
|
||||
impl_version: 0,
|
||||
#[cfg(not(feature = "disable-runtime-api"))]
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
#[cfg(feature = "disable-runtime-api")]
|
||||
apis: sp_version::create_apis_vec![[]],
|
||||
transaction_version: 22,
|
||||
state_version: 1,
|
||||
};
|
||||
@@ -1494,7 +1491,6 @@ mod benches {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "disable-runtime-api"))]
|
||||
sp_api::impl_runtime_apis! {
|
||||
impl sp_api::Core<Block> for Runtime {
|
||||
fn version() -> RuntimeVersion {
|
||||
|
||||
Reference in New Issue
Block a user