This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (89 loc) · 3.8 KB
/
Cargo.toml
File metadata and controls
98 lines (89 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[package]
name = "sp-io"
version = "7.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
license = "Apache-2.0"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
description = "I/O for Substrate runtimes"
documentation = "https://docs.rs/sp-io"
readme = "README.md"
build = "build.rs"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
bytes = { version = "1.1.0", default-features = false }
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false, features = ["bytes"] }
sp-core = { version = "7.0.0", default-features = false, path = "../core" }
sp-keystore = { version = "0.13.0", default-features = false, optional = true, path = "../keystore" }
sp-std = { version = "5.0.0", default-features = false, path = "../std" }
libsecp256k1 = { version = "0.7", default-features = false, optional = true }
sp-state-machine = { version = "0.13.0", default-features = false, optional = true, path = "../state-machine" }
sp-runtime-interface = { version = "7.0.0", default-features = false, path = "../runtime-interface" }
sp-trie = { version = "7.0.0", default-features = false, optional = true, path = "../trie" }
sp-externalities = { version = "0.13.0", default-features = false, path = "../externalities" }
sp-tracing = { version = "6.0.0", default-features = false, path = "../tracing" }
sp-crypto-ec-utils = { version = "0.4.0", default-features = false, path = "../crypto-ec-utils" }
log = { version = "0.4.17", default-features = false, optional = true }
futures = { version = "0.3.21", features = ["thread-pool"], default-features = false, optional = true }
secp256k1 = { version = "0.24.0", features = ["recovery", "global-context"], default-features = false, optional = true }
tracing = { version = "0.1.29", 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 = "1.0.1", default-features = false, optional = true }
# Force the usage of ed25519, this is being used in `ed25519-dalek`.
ed25519 = { version = "1.5.2", optional = true, default-features = false }
[build-dependencies]
rustversion = "1.0.6"
[features]
default = ["std"]
std = [
"bytes/std",
"sp-externalities/std",
"sp-core/std",
"sp-keystore",
"codec/std",
"sp-std/std",
"sp-trie/std",
"sp-state-machine/std",
"libsecp256k1",
"secp256k1",
"sp-runtime-interface/std",
"sp-tracing/std",
"sp-crypto-ec-utils/std",
"tracing/std",
"tracing-core/std",
"log",
"futures",
"ed25519-dalek",
"ed25519",
]
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]`.
#
# For the regular wasm runtime builds those are not used.
disable_panic_handler = []
disable_oom = []
disable_allocator = []
# This feature flag controls the runtime's behavior when encountering
# a panic or when it runs out of memory, improving the diagnostics.
#
# When enabled the runtime will marshal the relevant error message
# to the host through the `PanicHandler::abort_on_panic` runtime interface.
# This gives the caller direct programmatic access to the error message.
#
# When disabled the error message will only be printed out in the
# logs, with the caller receving a generic "wasm `unreachable` instruction executed"
# error message.
#
# This has no effect if both `disable_panic_handler` and `disable_oom`
# are enabled.
#
# WARNING: Enabling this feature flag requires the `PanicHandler::abort_on_panic`
# host function to be supported by the host. Do *not* enable it for your
# runtime without first upgrading your host client!
improved_panic_error_reporting = []