# 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"
rust-version = "1.60"
name = "ibc-types-core-commitment"
version = "0.12.1"
authors = ["Penumbra Labs <team@penumbralabs.xyz"]
publish = true
description = """
    Data types for the Inter-Blockchain Communication (IBC) protocol.
    This crate defines common data structures that can be reused by different IBC implementations or ecosystem tooling.
"""
readme = "README.md"
keywords = [
    "blockchain",
    "consensus",
    "cosmos",
    "ibc",
    "tendermint",
]
license = "Apache-2.0"
repository = "https://github.com/penumbra-zone/ibc-types"

[package.metadata.docs.rs]
all-features = true

[dependencies.anyhow]
version = "1"

[dependencies.borsh]
version = "0.10.0"
optional = true
default-features = false

[dependencies.bytes]
version = "1.2.1"
default-features = false

[dependencies.cfg-if]
version = "1.0.0"
optional = true

[dependencies.derive_more]
version = "0.99.17"
features = [
    "from",
    "into",
    "display",
]
default-features = false

[dependencies.displaydoc]
version = "0.2"
default-features = false

[dependencies.dyn-clone]
version = "1.0.8"

[dependencies.erased-serde]
version = "0.3"
features = ["alloc"]
optional = true
default-features = false

[dependencies.hex]
version = "0.4.3"
default-features = false

[dependencies.ibc-proto]
version = "0.41.0"
default-features = false

[dependencies.ibc-types-domain-type]
version = "0.12.1"
default-features = false

[dependencies.ibc-types-identifier]
version = "0.12.1"
default-features = false

[dependencies.ibc-types-timestamp]
version = "0.12.1"
default-features = false

[dependencies.ics23]
version = "0.11.3"
features = ["host-functions"]
default-features = false

[dependencies.num-traits]
version = "0.2.15"
default-features = false

[dependencies.parity-scale-codec]
version = "3.0.0"
features = ["full"]
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12.1"
optional = true
default-features = false

[dependencies.primitive-types]
version = "0.12.1"
features = ["serde_no_std"]
default-features = false

[dependencies.prost]
version = "0.12"
default-features = false

[dependencies.safe-regex]
version = "0.2.5"
default-features = false

[dependencies.scale-info]
version = "2.1.2"
features = ["derive"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
optional = true
default-features = false

[dependencies.serde_derive]
version = "1.0.104"
optional = true
default-features = false

[dependencies.serde_json]
version = "1"
optional = true
default-features = false

[dependencies.sha2]
version = "0.10.6"
default-features = false

[dependencies.subtle-encoding]
version = "0.5"
default-features = false

[dependencies.tendermint]
version = "0.34.0"
default-features = false

[dependencies.tendermint-light-client-verifier]
version = "0.34.0"
features = ["rust-crypto"]
default-features = false

[dependencies.tendermint-proto]
version = "0.34.0"
default-features = false

[dependencies.tendermint-testgen]
version = "0.34.0"
optional = true
default-features = false

[dependencies.time]
version = "0.3"
default-features = false

[dependencies.tracing]
version = "0.1.36"
default-features = false

[dependencies.uint]
version = "0.9"
default-features = false

[dev-dependencies.cfg-if]
version = "1.0.0"

[dev-dependencies.env_logger]
version = "0.10.0"

[dev-dependencies.parking_lot]
version = "0.12.1"

[dev-dependencies.rstest]
version = "0.16.0"

[dev-dependencies.tendermint-rpc]
version = "0.34.0"
features = [
    "http-client",
    "websocket-client",
]

[dev-dependencies.tendermint-testgen]
version = "0.34.0"

[dev-dependencies.test-log]
version = "0.2.10"
features = ["trace"]

[dev-dependencies.tracing-subscriber]
version = "0.3.14"
features = [
    "fmt",
    "env-filter",
    "json",
]

[features]
borsh = ["dep:borsh"]
default = ["std"]
mocks = [
    "tendermint-testgen",
    "tendermint/clock",
    "cfg-if",
    "parking_lot",
]
mocks-no-std = ["cfg-if"]
parity-scale-codec = [
    "dep:parity-scale-codec",
    "dep:scale-info",
]
std = [
    "ibc-types-timestamp/std",
    "ibc-types-identifier/std",
    "ibc-proto/std",
    "ics23/std",
    "serde/std",
    "serde_json/std",
    "erased-serde/std",
    "tracing/std",
    "prost/std",
    "bytes/std",
    "subtle-encoding/std",
    "sha2/std",
    "displaydoc/std",
    "num-traits/std",
    "uint/std",
    "primitive-types/std",
    "tendermint/clock",
    "tendermint/std",
    "hex/std",
]
upgrade_client = []
with_serde = [
    "serde",
    "serde_derive",
    "serde_json",
    "erased-serde",
]
