# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "frame-decode"
version = "0.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Decode extrinsics and storage from Substrate based chains"
homepage = "https://www.parity.io/"
documentation = "https://docs.rs/frame-decode"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/paritytech/frame-decode"

[lib]
name = "frame_decode"
path = "src/lib.rs"

[dependencies.frame-metadata]
version = "17.0.0"
features = ["current"]
default-features = false

[dependencies.parity-scale-codec]
version = "3.6.12"
default-features = false

[dependencies.scale-decode]
version = "0.14.0"
default-features = false

[dependencies.scale-info]
version = "2.11.4"
default-features = false

[dependencies.scale-info-legacy]
version = "0.2.2"
optional = true
default-features = false

[dependencies.scale-type-resolver]
version = "0.2.0"

[dependencies.scale-value]
version = "0.17.0"
optional = true
default-features = false

[dependencies.sp-crypto-hashing]
version = "0.1.0"
default-features = false

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.scale-info-legacy]
version = "0.2.2"

[dev-dependencies.scale-value]
version = "0.17.0"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.serde_yaml]
version = "0.9"

[features]
default = [
    "std",
    "legacy",
    "error-tracing",
]
error-tracing = ["dep:scale-value"]
legacy = [
    "frame-metadata/legacy",
    "dep:scale-info-legacy",
]
std = [
    "frame-metadata/std",
    "parity-scale-codec/std",
    "scale-decode/std",
    "scale-info/std",
    "scale-info-legacy?/std",
    "scale-value?/std",
    "sp-crypto-hashing/std",
]
