Enforce consistent and correct toml formatting (#2518)

Using taplo, fixes all our broken and inconsistent toml formatting and
adds CI to keep them tidy.

If people want we can customise the format rules as described here
https://taplo.tamasfe.dev/configuration/formatter-options.html

@ggwpez, I suggest zepter is used only for checking features are
propagated, and leave formatting for taplo to avoid duplicate work and
conflicts.

TODO
- [x] Use `exclude = [...]` syntax in taplo file to ignore zombienet
tests instead of deleting the dir

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Liam Aharon
2023-12-01 11:38:02 +04:00
committed by GitHub
parent 52132636d9
commit 4a293bc5a2
364 changed files with 2325 additions and 2287 deletions
+4 -4
View File
@@ -32,7 +32,7 @@ log = { version = "0.4.17", default-features = false }
sp-test-primitives = { path = "../test-primitives" }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"hash-db",
@@ -58,7 +58,7 @@ std = [
# building a runtime for registering it on chain.
#
# This sets the max logging level to `off` for `log`.
disable-logging = [ "log/max_level_off" ]
disable-logging = ["log/max_level_off"]
# Do not report the documentation in the metadata.
no-metadata-docs = [ "sp-api-proc-macro/no-metadata-docs" ]
frame-metadata = [ "sp-api-proc-macro/frame-metadata", "sp-metadata-ir" ]
no-metadata-docs = ["sp-api-proc-macro/no-metadata-docs"]
frame-metadata = ["sp-api-proc-macro/frame-metadata", "sp-metadata-ir"]
@@ -17,7 +17,7 @@ proc-macro = true
[dependencies]
quote = "1.0.28"
syn = { version = "2.0.38", features = ["full", "fold", "extra-traits", "visit"] }
syn = { version = "2.0.38", features = ["extra-traits", "fold", "full", "visit"] }
proc-macro2 = "1.0.56"
blake2 = { version = "0.10.4", default-features = false }
proc-macro-crate = "1.1.3"
@@ -29,7 +29,7 @@ assert_matches = "1.3.0"
[features]
# Required for the doc tests
default = [ "std" ]
std = [ "blake2/std" ]
default = ["std"]
std = ["blake2/std"]
no-metadata-docs = []
frame-metadata = []
@@ -15,15 +15,15 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-core = { path = "../core", default-features = false}
sp-core = { path = "../core", default-features = false }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, optional = true, features = ["derive", "alloc"] }
sp-std = { path = "../std", default-features = false}
sp-io = { path = "../io", default-features = false}
serde = { version = "1.0.193", default-features = false, optional = true, features = ["alloc", "derive"] }
sp-std = { path = "../std", default-features = false }
sp-io = { path = "../io", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"full_crypto",
@@ -35,7 +35,7 @@ std = [
]
# Serde support without relying on std features.
serde = [ "dep:serde", "scale-info/serde", "sp-core/serde" ]
serde = ["dep:serde", "scale-info/serde", "sp-core/serde"]
# This feature enables all crypto primitives for `no_std` builds like microcontrollers
# or Intel SGX.
@@ -51,7 +51,7 @@ full_crypto = [
# This feature adds BLS crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bls-experimental = [ "sp-core/bls-experimental", "sp-io/bls-experimental" ]
bls-experimental = ["sp-core/bls-experimental", "sp-io/bls-experimental"]
# This feature adds Bandersnatch crypto primitives.
# It should not be used in production since the implementation and interface may still
@@ -15,6 +15,6 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-api = { path = "../../api" }
sp-application-crypto = { path = ".." }
sp-core = { path = "../../core", default-features = false}
sp-keystore = { path = "../../keystore", default-features = false}
sp-core = { path = "../../core", default-features = false }
sp-keystore = { path = "../../keystore", default-features = false }
substrate-test-runtime-client = { path = "../../../test-utils/runtime/client" }
+5 -5
View File
@@ -21,18 +21,18 @@ codec = { package = "parity-scale-codec", version = "3.6.1", default-features =
integer-sqrt = "0.1.2"
num-traits = { version = "0.2.8", default-features = false }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, features = ["derive", "alloc"], optional = true }
serde = { version = "1.0.193", default-features = false, features = ["alloc", "derive"], optional = true }
static_assertions = "1.1.0"
sp-std = { path = "../std", default-features = false}
sp-std = { path = "../std", default-features = false }
[dev-dependencies]
criterion = "0.4.0"
primitive-types = "0.12.0"
sp-core = { path = "../core", features = ["full_crypto"]}
sp-core = { path = "../core", features = ["full_crypto"] }
rand = "0.8.5"
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"num-traits/std",
@@ -42,7 +42,7 @@ std = [
"sp-std/std",
]
# Serde support without relying on std features.
serde = [ "dep:serde", "scale-info/serde" ]
serde = ["dep:serde", "scale-info/serde"]
[[bench]]
name = "bench"
@@ -15,13 +15,13 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
sp-api = { path = "../api", default-features = false}
sp-application-crypto = { path = "../application-crypto", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-api = { path = "../api", default-features = false }
sp-application-crypto = { path = "../application-crypto", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
@@ -13,11 +13,11 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-api = { path = "../api", default-features = false}
sp-inherents = { path = "../inherents", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-api = { path = "../api", default-features = false }
sp-inherents = { path = "../inherents", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
[features]
default = [ "std" ]
std = [ "sp-api/std", "sp-inherents/std", "sp-runtime/std", "sp-std/std" ]
default = ["std"]
std = ["sp-api/std", "sp-inherents/std", "sp-runtime/std", "sp-std/std"]
@@ -16,16 +16,16 @@ targets = ["x86_64-unknown-linux-gnu"]
async-trait = { version = "0.1.57", optional = true }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
sp-api = { path = "../../api", default-features = false}
sp-application-crypto = { path = "../../application-crypto", default-features = false}
sp-consensus-slots = { path = "../slots", default-features = false}
sp-inherents = { path = "../../inherents", default-features = false}
sp-runtime = { path = "../../runtime", default-features = false}
sp-std = { path = "../../std", default-features = false}
sp-timestamp = { path = "../../timestamp", default-features = false}
sp-api = { path = "../../api", default-features = false }
sp-application-crypto = { path = "../../application-crypto", default-features = false }
sp-consensus-slots = { path = "../slots", default-features = false }
sp-inherents = { path = "../../inherents", default-features = false }
sp-runtime = { path = "../../runtime", default-features = false }
sp-std = { path = "../../std", default-features = false }
sp-timestamp = { path = "../../timestamp", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"async-trait",
"codec/std",
+10 -10
View File
@@ -16,18 +16,18 @@ targets = ["x86_64-unknown-linux-gnu"]
async-trait = { version = "0.1.57", optional = true }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, features = ["derive", "alloc"], optional = true }
sp-api = { path = "../../api", default-features = false}
sp-application-crypto = { path = "../../application-crypto", default-features = false}
sp-consensus-slots = { path = "../slots", default-features = false}
sp-core = { path = "../../core", default-features = false}
sp-inherents = { path = "../../inherents", default-features = false}
sp-runtime = { path = "../../runtime", default-features = false}
sp-std = { path = "../../std", default-features = false}
sp-timestamp = { path = "../../timestamp", optional = true}
serde = { version = "1.0.193", default-features = false, features = ["alloc", "derive"], optional = true }
sp-api = { path = "../../api", default-features = false }
sp-application-crypto = { path = "../../application-crypto", default-features = false }
sp-consensus-slots = { path = "../slots", default-features = false }
sp-core = { path = "../../core", default-features = false }
sp-inherents = { path = "../../inherents", default-features = false }
sp-runtime = { path = "../../runtime", default-features = false }
sp-std = { path = "../../std", default-features = false }
sp-timestamp = { path = "../../timestamp", optional = true }
[features]
default = [ "std" ]
default = ["std"]
std = [
"async-trait",
"codec/std",
@@ -14,7 +14,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, optional = true, features = ["derive", "alloc"] }
serde = { version = "1.0.193", default-features = false, optional = true, features = ["alloc", "derive"] }
sp-api = { path = "../../api", default-features = false }
sp-application-crypto = { path = "../../application-crypto", default-features = false }
sp-core = { path = "../../core", default-features = false }
@@ -30,7 +30,7 @@ array-bytes = "6.1"
w3f-bls = { version = "0.1.3", features = ["std"] }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
@@ -18,16 +18,16 @@ codec = { package = "parity-scale-codec", version = "3.6.1", default-features =
grandpa = { package = "finality-grandpa", version = "0.16.2", default-features = false, features = ["derive-codec"] }
log = { version = "0.4.17", default-features = false }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", features = ["derive", "alloc"], default-features = false, optional = true }
sp-api = { path = "../../api", default-features = false}
sp-application-crypto = { path = "../../application-crypto", default-features = false}
sp-core = { path = "../../core", default-features = false}
sp-keystore = { path = "../../keystore", default-features = false, optional = true}
sp-runtime = { path = "../../runtime", default-features = false}
sp-std = { path = "../../std", default-features = false}
serde = { version = "1.0.193", features = ["alloc", "derive"], default-features = false, optional = true }
sp-api = { path = "../../api", default-features = false }
sp-application-crypto = { path = "../../application-crypto", default-features = false }
sp-core = { path = "../../core", default-features = false }
sp-keystore = { path = "../../keystore", default-features = false, optional = true }
sp-runtime = { path = "../../runtime", default-features = false }
sp-std = { path = "../../std", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"grandpa/std",
@@ -14,13 +14,13 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
sp-api = { path = "../../api", default-features = false}
sp-core = { path = "../../core", default-features = false}
sp-runtime = { path = "../../runtime", default-features = false}
sp-std = { path = "../../std", default-features = false}
sp-api = { path = "../../api", default-features = false }
sp-core = { path = "../../core", default-features = false }
sp-runtime = { path = "../../runtime", default-features = false }
sp-std = { path = "../../std", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"sp-api/std",
@@ -26,7 +26,7 @@ sp-runtime = { default-features = false, path = "../../runtime" }
sp-std = { default-features = false, path = "../../std" }
[features]
default = [ "std" ]
default = ["std"]
std = [
"scale-codec/std",
"scale-info/std",
@@ -15,12 +15,12 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"], optional = true }
sp-std = { path = "../../std", default-features = false}
sp-timestamp = { path = "../../timestamp", default-features = false}
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"], optional = true }
sp-std = { path = "../../std", default-features = false }
sp-timestamp = { path = "../../timestamp", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
@@ -30,4 +30,4 @@ std = [
]
# Serde support without relying on std features.
serde = [ "dep:serde", "scale-info/serde" ]
serde = ["dep:serde", "scale-info/serde"]
+13 -13
View File
@@ -13,27 +13,27 @@ documentation = "https://docs.rs/sp-core"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive","max-encoded-len"] }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
log = { version = "0.4.17", default-features = false }
serde = { version = "1.0.193", optional = true, default-features = false, features = ["derive", "alloc"] }
serde = { version = "1.0.193", optional = true, default-features = false, features = ["alloc", "derive"] }
bounded-collections = { version = "0.1.8", default-features = false }
primitive-types = { version = "0.12.0", default-features = false, features = ["codec", "scale-info"] }
impl-serde = { version = "0.4.0", default-features = false, optional = true }
hash-db = { version = "0.16.0", default-features = false }
hash256-std-hasher = { version = "0.15.2", default-features = false }
bs58 = { version = "0.5.0", default-features = false, optional = true }
rand = { version = "0.8.5", features = ["small_rng"], optional = true }
rand = { version = "0.8.5", features = ["small_rng"], optional = true }
substrate-bip39 = { version = "0.4.4", optional = true }
bip39 = { version = "2.0.0", default-features = false }
zeroize = { version = "1.4.3", default-features = false }
secrecy = { version = "0.8.0", default-features = false }
parking_lot = { version = "0.12.1", optional = true }
ss58-registry = { version = "1.34.0", default-features = false }
sp-std = { path = "../std", default-features = false}
sp-debug-derive = { path = "../debug-derive", default-features = false}
sp-storage = { path = "../storage", default-features = false}
sp-externalities = { path = "../externalities", optional = true}
sp-std = { path = "../std", default-features = false }
sp-debug-derive = { path = "../debug-derive", default-features = false }
sp-storage = { path = "../storage", default-features = false }
sp-externalities = { path = "../externalities", optional = true }
futures = { version = "0.3.21", optional = true }
dyn-clonable = { version = "0.9.0", optional = true }
thiserror = { version = "1.0.48", optional = true }
@@ -49,12 +49,12 @@ blake2 = { version = "0.10.4", default-features = false, optional = true }
libsecp256k1 = { version = "0.7", default-features = false, features = ["static-context"], optional = true }
schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated", "u64_backend"], default-features = false }
merlin = { version = "2.0", default-features = false }
secp256k1 = { version = "0.28.0", default-features = false, features = ["recovery", "alloc"], optional = true }
secp256k1 = { version = "0.28.0", default-features = false, features = ["alloc", "recovery"], optional = true }
sp-core-hashing = { path = "hashing", default-features = false, optional = true }
sp-runtime-interface = { path = "../runtime-interface", default-features = false}
sp-runtime-interface = { path = "../runtime-interface", default-features = false }
# bls crypto
w3f-bls = { version = "0.1.3", default-features = false, optional = true}
w3f-bls = { version = "0.1.3", default-features = false, optional = true }
# bandersnatch crypto
bandersnatch_vrfs = { git = "https://github.com/w3f/ring-vrf", rev = "3ddc205", default-features = false, optional = true }
@@ -73,7 +73,7 @@ harness = false
bench = false
[features]
default = [ "std" ]
default = ["std"]
std = [
"array-bytes",
"bandersnatch_vrfs?/std",
@@ -153,9 +153,9 @@ full_crypto = [
# This feature adds BLS crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bls-experimental = [ "w3f-bls" ]
bls-experimental = ["w3f-bls"]
# This feature adds Bandersnatch crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bandersnatch-experimental = [ "bandersnatch_vrfs" ]
bandersnatch-experimental = ["bandersnatch_vrfs"]
+1 -1
View File
@@ -21,7 +21,7 @@ sha3 = { version = "0.10.0", default-features = false }
twox-hash = { version = "1.6.3", default-features = false, features = ["digest_0_10"] }
[features]
default = [ "std" ]
default = ["std"]
std = [
"blake2b_simd/std",
"byteorder/std",
@@ -18,4 +18,4 @@ proc-macro = true
[dependencies]
quote = "1.0.28"
syn = { version = "2.0.38", features = ["full", "parsing"] }
sp-core-hashing = { path = "..", default-features = false}
sp-core-hashing = { path = "..", default-features = false }
@@ -28,7 +28,7 @@ sp-runtime-interface = { path = "../../runtime-interface", default-features = fa
sp-std = { path = "../../std", default-features = false, optional = true }
[features]
default = [ "std" ]
default = ["std"]
std = [
"ark-bls12-377-ext?/std",
"ark-bls12-377?/std",
@@ -46,11 +46,11 @@ std = [
"sp-runtime-interface?/std",
"sp-std?/std",
]
common = [ "ark-ec", "ark-scale", "sp-runtime-interface", "sp-std" ]
bls12-377 = [ "ark-bls12-377", "ark-bls12-377-ext", "common" ]
bls12-381 = [ "ark-bls12-381", "ark-bls12-381-ext", "common" ]
bw6-761 = [ "ark-bw6-761", "ark-bw6-761-ext", "common" ]
ed-on-bls12-377 = [ "ark-ed-on-bls12-377", "ark-ed-on-bls12-377-ext", "common" ]
common = ["ark-ec", "ark-scale", "sp-runtime-interface", "sp-std"]
bls12-377 = ["ark-bls12-377", "ark-bls12-377-ext", "common"]
bls12-381 = ["ark-bls12-381", "ark-bls12-381-ext", "common"]
bw6-761 = ["ark-bw6-761", "ark-bw6-761-ext", "common"]
ed-on-bls12-377 = ["ark-ed-on-bls12-377", "ark-ed-on-bls12-377-ext", "common"]
ed-on-bls12-381-bandersnatch = [
"ark-ed-on-bls12-381-bandersnatch",
"ark-ed-on-bls12-381-bandersnatch-ext",
+1 -1
View File
@@ -22,7 +22,7 @@ syn = "2.0.38"
proc-macro2 = "1.0.56"
[features]
default = [ "std" ]
default = ["std"]
std = []
# By default `RuntimeDebug` implements `Debug` that outputs `<wasm:stripped>` when `std` is
# disabled. However, sometimes downstream users need to have the real `Debug` implementation for
@@ -16,9 +16,9 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false }
environmental = { version = "1.1.3", default-features = false }
sp-std = { path = "../std", default-features = false}
sp-storage = { path = "../storage", default-features = false}
sp-std = { path = "../std", default-features = false }
sp-storage = { path = "../storage", default-features = false }
[features]
default = [ "std" ]
std = [ "codec/std", "environmental/std", "sp-std/std", "sp-storage/std" ]
default = ["std"]
std = ["codec/std", "environmental/std", "sp-std/std", "sp-storage/std"]
@@ -13,11 +13,11 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-api = { path = "../api", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-api = { path = "../api", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
serde_json = { version = "1.0.108", default-features = false, features = ["alloc"] }
[features]
default = [ "std" ]
std = [ "serde_json/std", "sp-api/std", "sp-runtime/std", "sp-std/std" ]
default = ["std"]
std = ["serde_json/std", "sp-api/std", "sp-runtime/std", "sp-std/std"]
+3 -3
View File
@@ -19,14 +19,14 @@ codec = { package = "parity-scale-codec", version = "3.6.1", default-features =
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
impl-trait-for-tuples = "0.2.2"
thiserror = { version = "1.0.48", optional = true }
sp-runtime = { path = "../runtime", default-features = false, optional = true}
sp-std = { path = "../std", default-features = false}
sp-runtime = { path = "../runtime", default-features = false, optional = true }
sp-std = { path = "../std", default-features = false }
[dev-dependencies]
futures = "0.3.21"
[features]
default = [ "std" ]
default = ["std"]
std = [
"async-trait",
"codec/std",
+14 -14
View File
@@ -18,19 +18,19 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
bytes = { version = "1.1.0", default-features = false }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["bytes"] }
sp-core = { path = "../core", default-features = false}
sp-keystore = { path = "../keystore", default-features = false, optional = true}
sp-std = { path = "../std", default-features = false}
sp-core = { path = "../core", default-features = false }
sp-keystore = { path = "../keystore", default-features = false, optional = true }
sp-std = { path = "../std", default-features = false }
libsecp256k1 = { version = "0.7", optional = true }
sp-state-machine = { path = "../state-machine", default-features = false, optional = true}
sp-runtime-interface = { path = "../runtime-interface", default-features = false}
sp-trie = { path = "../trie", default-features = false, optional = true}
sp-externalities = { path = "../externalities", default-features = false}
sp-tracing = { path = "../tracing", default-features = false}
sp-state-machine = { path = "../state-machine", default-features = false, optional = true }
sp-runtime-interface = { path = "../runtime-interface", default-features = false }
sp-trie = { path = "../trie", default-features = false, optional = true }
sp-externalities = { path = "../externalities", default-features = false }
sp-tracing = { path = "../tracing", default-features = false }
log = { version = "0.4.17", optional = true }
secp256k1 = { version = "0.28.0", features = ["recovery", "global-context"], optional = true }
secp256k1 = { version = "0.28.0", features = ["global-context", "recovery"], optional = true }
tracing = { version = "0.1.29", default-features = false }
tracing-core = { version = "0.1.28", default-features = false}
tracing-core = { version = "0.1.28", default-features = false }
# Required for backwards compatibility reason, but only used for verifying when `UseDalekExt` is set.
ed25519-dalek = { version = "2.0", default-features = false, optional = true }
@@ -39,7 +39,7 @@ ed25519-dalek = { version = "2.0", default-features = false, optional = true }
rustversion = "1.0.6"
[features]
default = [ "std" ]
default = ["std"]
std = [
"bytes/std",
"codec/std",
@@ -60,7 +60,7 @@ std = [
"tracing/std",
]
with-tracing = [ "sp-tracing/with-tracing" ]
with-tracing = ["sp-tracing/with-tracing"]
# These two features are used for `no_std` builds for the environments which already provides
# `#[panic_handler]`, `#[alloc_error_handler]` and `#[global_allocator]`.
@@ -92,9 +92,9 @@ improved_panic_error_reporting = []
# This feature adds BLS crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bls-experimental = [ "sp-keystore/bls-experimental" ]
bls-experimental = ["sp-keystore/bls-experimental"]
# This feature adds Bandersnatch crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bandersnatch-experimental = [ "sp-keystore/bandersnatch-experimental" ]
bandersnatch-experimental = ["sp-keystore/bandersnatch-experimental"]
+1 -1
View File
@@ -23,4 +23,4 @@ sp-runtime = { path = "../runtime" }
# This feature adds Bandersnatch crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bandersnatch-experimental = [ "sp-core/bandersnatch-experimental" ]
bandersnatch-experimental = ["sp-core/bandersnatch-experimental"]
+6 -6
View File
@@ -16,23 +16,23 @@ targets = ["x86_64-unknown-linux-gnu"]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
parking_lot = { version = "0.12.1", default-features = false }
thiserror = "1.0"
sp-core = { path = "../core", default-features = false}
sp-externalities = { path = "../externalities", default-features = false}
sp-core = { path = "../core", default-features = false }
sp-externalities = { path = "../externalities", default-features = false }
[dev-dependencies]
rand = "0.7.2"
rand_chacha = "0.2.2"
[features]
default = [ "std" ]
std = [ "codec/std", "sp-core/std", "sp-externalities/std" ]
default = ["std"]
std = ["codec/std", "sp-core/std", "sp-externalities/std"]
# This feature adds BLS crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bls-experimental = [ "sp-core/bls-experimental" ]
bls-experimental = ["sp-core/bls-experimental"]
# This feature adds Bandersnatch crypto primitives.
# It should not be used in production since the implementation and interface may still
# be subject to significant changes.
bandersnatch-experimental = [ "sp-core/bandersnatch-experimental" ]
bandersnatch-experimental = ["sp-core/bandersnatch-experimental"]
@@ -16,19 +16,19 @@ codec = { package = "parity-scale-codec", version = "3.6.1", default-features =
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
log = { version = "0.4.17", default-features = false }
mmr-lib = { package = "ckb-merkle-mountain-range", version = "0.5.2", default-features = false }
serde = { version = "1.0.193", features = ["derive", "alloc"], default-features = false, optional = true }
sp-api = { path = "../api", default-features = false}
sp-core = { path = "../core", default-features = false}
sp-debug-derive = { path = "../debug-derive", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
serde = { version = "1.0.193", features = ["alloc", "derive"], default-features = false, optional = true }
sp-api = { path = "../api", default-features = false }
sp-core = { path = "../core", default-features = false }
sp-debug-derive = { path = "../debug-derive", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
thiserror = "1.0"
[dev-dependencies]
array-bytes = "6.1"
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"log/std",
@@ -43,4 +43,4 @@ std = [
]
# Serde support without relying on std features.
serde = [ "dep:serde", "scale-info/serde", "sp-core/serde", "sp-runtime/serde" ]
serde = ["dep:serde", "scale-info/serde", "sp-core/serde", "sp-runtime/serde"]
+3 -3
View File
@@ -16,8 +16,8 @@ targets = ["x86_64-unknown-linux-gnu"]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false }
frame-metadata = { version = "16.0.0", default-features = false, features = ["current"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
sp-std = { path = "../std", default-features = false}
sp-std = { path = "../std", default-features = false }
[features]
default = [ "std" ]
std = [ "codec/std", "frame-metadata/std", "scale-info/std", "sp-std/std" ]
default = ["std"]
std = ["codec/std", "frame-metadata/std", "scale-info/std", "sp-std/std"]
+1 -1
View File
@@ -20,7 +20,7 @@ sp-application-crypto = { default-features = false, path = "../application-crypt
sp-std = { default-features = false, path = "../std" }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
@@ -15,18 +15,18 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, features = ["derive", "alloc"], optional = true }
sp-arithmetic = { path = "../arithmetic", default-features = false}
sp-core = { path = "../core", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
serde = { version = "1.0.193", default-features = false, features = ["alloc", "derive"], optional = true }
sp-arithmetic = { path = "../arithmetic", default-features = false }
sp-core = { path = "../core", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
[dev-dependencies]
rand = "0.8.5"
substrate-test-utils = { path = "../../test-utils" }
[features]
default = [ "std" ]
default = ["std"]
bench = []
std = [
"codec/std",
@@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
clap = { version = "4.4.10", features = ["derive"] }
honggfuzz = "0.5"
rand = { version = "0.8", features = ["std", "small_rng"] }
rand = { version = "0.8", features = ["small_rng", "std"] }
sp-npos-elections = { path = ".." }
sp-runtime = { path = "../../runtime" }
+5 -5
View File
@@ -13,10 +13,10 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-api = { path = "../api", default-features = false}
sp-core = { path = "../core", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-api = { path = "../api", default-features = false }
sp-core = { path = "../core", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
[features]
default = [ "std" ]
std = [ "sp-api/std", "sp-core/std", "sp-runtime/std" ]
default = ["std"]
std = ["sp-api/std", "sp-core/std", "sp-runtime/std"]
@@ -16,14 +16,14 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
bytes = { version = "1.1.0", default-features = false }
sp-wasm-interface = { path = "../wasm-interface", default-features = false }
sp-std = { path = "../std", default-features = false}
sp-tracing = { path = "../tracing", default-features = false}
sp-std = { path = "../std", default-features = false }
sp-tracing = { path = "../tracing", default-features = false }
sp-runtime-interface-proc-macro = { path = "proc-macro" }
sp-externalities = { path = "../externalities", default-features = false}
sp-externalities = { path = "../externalities", default-features = false }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["bytes"] }
static_assertions = "1.0.0"
primitive-types = { version = "0.12.0", default-features = false }
sp-storage = { path = "../storage", default-features = false}
sp-storage = { path = "../storage", default-features = false }
impl-trait-for-tuples = "0.2.2"
[dev-dependencies]
@@ -35,7 +35,7 @@ rustversion = "1.0.6"
trybuild = "1.0.74"
[features]
default = [ "std" ]
default = ["std"]
std = [
"bytes/std",
"codec/std",
@@ -21,4 +21,4 @@ proc-macro-crate = "1.1.3"
proc-macro2 = "1.0.56"
quote = "1.0.28"
expander = "2.0.0"
syn = { version = "2.0.38", features = ["full", "visit", "fold", "extra-traits"] }
syn = { version = "2.0.38", features = ["extra-traits", "fold", "full", "visit"] }
@@ -13,15 +13,15 @@ publish = false
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-core = { path = "../../core", default-features = false}
sp-io = { path = "../../io", default-features = false}
sp-runtime-interface = { path = "..", default-features = false}
sp-core = { path = "../../core", default-features = false }
sp-io = { path = "../../io", default-features = false }
sp-runtime-interface = { path = "..", default-features = false }
[build-dependencies]
substrate-wasm-builder = { path = "../../../utils/wasm-builder", optional = true }
[features]
default = [ "std" ]
default = ["std"]
std = [
"sp-core/std",
"sp-io/std",
@@ -14,16 +14,16 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
bytes = { version = "1.1.0", default-features = false }
sp-core = { path = "../../core", default-features = false}
sp-io = { path = "../../io", default-features = false}
sp-runtime-interface = { path = "..", default-features = false}
sp-std = { path = "../../std", default-features = false}
sp-core = { path = "../../core", default-features = false }
sp-io = { path = "../../io", default-features = false }
sp-runtime-interface = { path = "..", default-features = false }
sp-std = { path = "../../std", default-features = false }
[build-dependencies]
substrate-wasm-builder = { path = "../../../utils/wasm-builder", optional = true }
[features]
default = [ "std" ]
default = ["std"]
std = [
"bytes/std",
"sp-core/std",
+8 -8
View File
@@ -22,13 +22,13 @@ log = { version = "0.4.17", default-features = false }
paste = "1.0"
rand = { version = "0.8.5", optional = true }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, features = ["derive", "alloc"], optional = true }
sp-application-crypto = { path = "../application-crypto", default-features = false}
sp-arithmetic = { path = "../arithmetic", default-features = false}
sp-core = { path = "../core", default-features = false}
sp-io = { path = "../io", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-weights = { path = "../weights", default-features = false}
serde = { version = "1.0.193", default-features = false, features = ["alloc", "derive"], optional = true }
sp-application-crypto = { path = "../application-crypto", default-features = false }
sp-arithmetic = { path = "../arithmetic", default-features = false }
sp-core = { path = "../core", default-features = false }
sp-io = { path = "../io", default-features = false }
sp-std = { path = "../std", default-features = false }
sp-weights = { path = "../weights", default-features = false }
docify = { version = "0.2.6" }
simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", branch = "main" }
@@ -45,7 +45,7 @@ substrate-test-runtime-client = { path = "../../test-utils/runtime/client" }
[features]
runtime-benchmarks = []
try-runtime = []
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"either/use_std",
+6 -6
View File
@@ -15,15 +15,15 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
sp-api = { path = "../api", default-features = false}
sp-core = { path = "../core", default-features = false}
sp-runtime = { path = "../runtime", optional = true}
sp-staking = { path = "../staking", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-api = { path = "../api", default-features = false }
sp-core = { path = "../core", default-features = false }
sp-runtime = { path = "../runtime", optional = true }
sp-staking = { path = "../staking", default-features = false }
sp-std = { path = "../std", default-features = false }
sp-keystore = { path = "../keystore", optional = true }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
+6 -6
View File
@@ -13,17 +13,17 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
serde = { version = "1.0.193", default-features = false, features = ["derive", "alloc"], optional = true }
serde = { version = "1.0.193", default-features = false, features = ["alloc", "derive"], optional = true }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
impl-trait-for-tuples = "0.2.2"
sp-core = { path = "../core", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-core = { path = "../core", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
@@ -32,4 +32,4 @@ std = [
"sp-runtime/std",
"sp-std/std",
]
runtime-benchmarks = [ "sp-runtime/runtime-benchmarks" ]
runtime-benchmarks = ["sp-runtime/runtime-benchmarks"]
@@ -22,11 +22,11 @@ rand = { version = "0.8.5", optional = true }
smallvec = "1.11.0"
thiserror = { version = "1.0.48", optional = true }
tracing = { version = "0.1.29", optional = true }
sp-core = { path = "../core", default-features = false}
sp-externalities = { path = "../externalities", default-features = false}
sp-panic-handler = { path = "../panic-handler", optional = true}
sp-std = { path = "../std", default-features = false}
sp-trie = { path = "../trie", default-features = false}
sp-core = { path = "../core", default-features = false }
sp-externalities = { path = "../externalities", default-features = false }
sp-panic-handler = { path = "../panic-handler", optional = true }
sp-std = { path = "../std", default-features = false }
sp-trie = { path = "../trie", default-features = false }
trie-db = { version = "0.28.0", default-features = false }
[dev-dependencies]
@@ -37,7 +37,7 @@ sp-runtime = { path = "../runtime" }
assert_matches = "1.5"
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"hash-db/std",
@@ -15,13 +15,13 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
sp-core = { path = "../core", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-api = { path = "../api", default-features = false}
sp-application-crypto = { path = "../application-crypto", default-features = false}
sp-runtime-interface = { path = "../runtime-interface", default-features = false}
sp-externalities = { path = "../externalities", default-features = false}
sp-core = { path = "../core", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
sp-api = { path = "../api", default-features = false }
sp-application-crypto = { path = "../application-crypto", default-features = false }
sp-runtime-interface = { path = "../runtime-interface", default-features = false }
sp-externalities = { path = "../externalities", default-features = false }
thiserror = { version = "1.0", optional = true }
# ECIES dependencies
@@ -31,10 +31,10 @@ curve25519-dalek = { version = "4.0.0", optional = true }
aes-gcm = { version = "0.10", optional = true }
hkdf = { version = "0.12.0", optional = true }
sha2 = { version = "0.10.7", optional = true }
rand = { version = "0.8.5", features = ["small_rng"], optional = true }
rand = { version = "0.8.5", features = ["small_rng"], optional = true }
[features]
default = [ "std" ]
default = ["std"]
std = [
"aes-gcm",
"aes-gcm?/std",
+1 -1
View File
@@ -14,5 +14,5 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[features]
default = [ "std" ]
default = ["std"]
std = []
+5 -5
View File
@@ -17,12 +17,12 @@ targets = ["x86_64-unknown-linux-gnu"]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
impl-serde = { version = "0.4.0", optional = true, default-features = false }
ref-cast = "1.0.0"
serde = { version = "1.0.193", default-features = false, features = ["derive", "alloc"], optional = true }
sp-debug-derive = { path = "../debug-derive", default-features = false}
sp-std = { path = "../std", default-features = false}
serde = { version = "1.0.193", default-features = false, features = ["alloc", "derive"], optional = true }
sp-debug-derive = { path = "../debug-derive", default-features = false }
sp-std = { path = "../std", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"impl-serde/std",
@@ -32,4 +32,4 @@ std = [
]
# Serde support without relying on std features.
serde = [ "dep:serde", "impl-serde" ]
serde = ["dep:serde", "impl-serde"]
@@ -15,13 +15,13 @@ targets = ["x86_64-unknown-linux-gnu"]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, features = ["derive"], optional = true }
sp-application-crypto = { path = "../application-crypto", default-features = false}
sp-core = { path = "../core", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-application-crypto = { path = "../application-crypto", default-features = false }
sp-core = { path = "../core", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
+4 -4
View File
@@ -16,12 +16,12 @@ targets = ["x86_64-unknown-linux-gnu"]
async-trait = { version = "0.1.57", optional = true }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.48", optional = true }
sp-inherents = { path = "../inherents", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-inherents = { path = "../inherents", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"async-trait",
"codec/std",
+3 -3
View File
@@ -15,7 +15,7 @@ default-target = "wasm32-unknown-unknown"
# with the tracing enabled
features = ["with-tracing"]
# allowing for linux-gnu here, too, allows for `std` to show up as well
targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]
targets = ["wasm32-unknown-unknown", "x86_64-unknown-linux-gnu"]
[dependencies]
sp-std = { path = "../std", default-features = false }
@@ -29,8 +29,8 @@ tracing-subscriber = { version = "0.2.25", optional = true, features = [
] }
[features]
default = [ "std" ]
with-tracing = [ "codec/derive", "codec/full" ]
default = ["std"]
with-tracing = ["codec/derive", "codec/full"]
std = [
"codec/std",
"sp-std/std",
@@ -14,9 +14,9 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-api = { path = "../api", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-api = { path = "../api", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
[features]
default = [ "std" ]
std = [ "sp-api/std", "sp-runtime/std" ]
default = ["std"]
std = ["sp-api/std", "sp-runtime/std"]
@@ -16,14 +16,14 @@ targets = ["x86_64-unknown-linux-gnu"]
async-trait = { version = "0.1.57", optional = true }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
sp-core = { path = "../core", optional = true}
sp-inherents = { path = "../inherents", default-features = false}
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-trie = { path = "../trie", optional = true}
sp-core = { path = "../core", optional = true }
sp-inherents = { path = "../inherents", default-features = false }
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
sp-trie = { path = "../trie", optional = true }
[features]
default = [ "std" ]
default = ["std"]
std = [
"async-trait",
"codec/std",
+3 -3
View File
@@ -32,8 +32,8 @@ thiserror = { version = "1.0.48", optional = true }
tracing = { version = "0.1.29", optional = true }
trie-db = { version = "0.28.0", default-features = false }
trie-root = { version = "0.18.0", default-features = false }
sp-core = { path = "../core", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-core = { path = "../core", default-features = false }
sp-std = { path = "../std", default-features = false }
sp-externalities = { path = "../externalities", default-features = false }
schnellru = { version = "0.2.1", optional = true }
@@ -45,7 +45,7 @@ trie-standardmap = "0.16.0"
sp-runtime = { path = "../runtime" }
[features]
default = [ "std" ]
default = ["std"]
std = [
"ahash",
"codec/std",
+6 -6
View File
@@ -18,15 +18,15 @@ codec = { package = "parity-scale-codec", version = "3.6.1", default-features =
impl-serde = { version = "0.4.0", default-features = false, optional = true }
parity-wasm = { version = "0.45", optional = true }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, features = ["derive", "alloc"], optional = true }
serde = { version = "1.0.193", default-features = false, features = ["alloc", "derive"], optional = true }
thiserror = { version = "1.0.48", optional = true }
sp-core-hashing-proc-macro = { path = "../core/hashing/proc-macro" }
sp-runtime = { path = "../runtime", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-version-proc-macro = { path = "proc-macro", default-features = false}
sp-runtime = { path = "../runtime", default-features = false }
sp-std = { path = "../std", default-features = false }
sp-version-proc-macro = { path = "proc-macro", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"impl-serde/std",
@@ -39,4 +39,4 @@ std = [
]
# Serde support without relying on std features.
serde = [ "dep:serde", "impl-serde", "sp-runtime/serde" ]
serde = ["dep:serde", "impl-serde", "sp-runtime/serde"]
@@ -16,10 +16,10 @@ targets = ["x86_64-unknown-linux-gnu"]
proc-macro = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", features = [ "derive" ] }
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
proc-macro2 = "1.0.56"
quote = "1.0.28"
syn = { version = "2.0.38", features = ["full", "fold", "extra-traits", "visit"] }
syn = { version = "2.0.38", features = ["extra-traits", "fold", "full", "visit"] }
[dev-dependencies]
sp-version = { path = ".." }
@@ -19,9 +19,9 @@ impl-trait-for-tuples = "0.2.2"
log = { version = "0.4.17", optional = true }
wasmtime = { version = "8.0.1", default-features = false, optional = true }
anyhow = { version = "1.0.68", optional = true }
sp-std = { path = "../std", default-features = false}
sp-std = { path = "../std", default-features = false }
[features]
default = [ "std" ]
std = [ "codec/std", "log/std", "sp-std/std", "wasmtime" ]
wasmtime = [ "anyhow", "dep:wasmtime" ]
default = ["std"]
std = ["codec/std", "log/std", "sp-std/std", "wasmtime"]
wasmtime = ["anyhow", "dep:wasmtime"]
+7 -7
View File
@@ -15,15 +15,15 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.193", default-features = false, optional = true, features = ["derive", "alloc"] }
serde = { version = "1.0.193", default-features = false, optional = true, features = ["alloc", "derive"] }
smallvec = "1.11.0"
sp-arithmetic = { path = "../arithmetic", default-features = false}
sp-core = { path = "../core", default-features = false}
sp-debug-derive = { path = "../debug-derive", default-features = false}
sp-std = { path = "../std", default-features = false}
sp-arithmetic = { path = "../arithmetic", default-features = false }
sp-core = { path = "../core", default-features = false }
sp-debug-derive = { path = "../debug-derive", default-features = false }
sp-std = { path = "../std", default-features = false }
[features]
default = [ "std" ]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
@@ -35,7 +35,7 @@ std = [
]
# By default some types have documentation, `full-metadata-docs` allows to add documentation to
# more types in the metadata.
full-metadata-docs = [ "scale-info/docs" ]
full-metadata-docs = ["scale-info/docs"]
# Serde support without relying on std features.
serde = [