sp-api 34.0.0

Substrate runtime api primitives (polkadot v1.15.0)
Documentation
[package]
name = "sp-api"
version = "34.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage = "https://substrate.io"
repository.workspace = true
description = "Substrate runtime api primitives (polkadot v1.15.0)"
readme = "README.md"

[lints]
workspace = true

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { workspace = true }
sp-api-proc-macro.workspace = true
sp-core.workspace = true
sp-runtime.workspace = true
sp-runtime-interface.workspace = true
sp-externalities = { optional = true, workspace = true }
sp-version.workspace = true
sp-state-machine = { optional = true, workspace = true }
sp-trie = { optional = true, workspace = true }
hash-db = { optional = true, workspace = true, default-features = true }
thiserror = { optional = true, workspace = true }
scale-info = { features = [
	"derive",
], workspace = true }
sp-metadata-ir = { optional = true, workspace = true }
log = { workspace = true }
docify = { workspace = true }

[dev-dependencies]
sp-test-primitives = { path = "../test-primitives" }

[features]
default = ["std"]
std = [
	"codec/std",
	"hash-db",
	"log/std",
	"scale-info/std",
	"sp-api-proc-macro/std",
	"sp-core/std",
	"sp-externalities",
	"sp-externalities?/std",
	"sp-metadata-ir?/std",
	"sp-runtime-interface/std",
	"sp-runtime/std",
	"sp-state-machine/std",
	"sp-trie/std",
	"sp-version/std",
	"thiserror",
]
# Special feature to disable logging completely.
#
# By default `sp-api` initializes the `RuntimeLogger` for each runtime api function. However,
# logging functionality increases the code size. It is recommended to enable this feature when
# building a runtime for registering it on chain.
#
# This sets the max logging level to `off` for `log`.
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-metadata-ir"]