# 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.72.1"
name = "ibc-primitives"
version = "0.55.0"
authors = ["Informal Systems <hello@informal.systems>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
    Maintained by `ibc-rs`, furnishes essential types and traits universally
    utilized in the implementation of diverse IBC modules, encompassing
    core functionalities, clients, and applications.
"""
readme = "README.md"
keywords = [
    "blockchain",
    "cosmos",
    "ibc",
]
license = "Apache-2.0"
repository = "https://github.com/cosmos/ibc-rs"

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

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

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

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

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

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

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

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

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

[dependencies.schemars]
version = "0.8.21"
optional = true

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

[dependencies.time]
version = ">=0.3.0, <0.3.37"
default-features = false

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

[dev-dependencies.serde-json]
version = "1.0.1"
default-features = false
package = "serde-json-wasm"

[features]
borsh = [
    "dep:borsh",
    "ibc-proto/borsh",
]
default = ["std"]
parity-scale-codec = [
    "dep:parity-scale-codec",
    "dep:scale-info",
    "ibc-proto/parity-scale-codec",
]
schema = [
    "dep:schemars",
    "ibc-proto/json-schema",
    "serde",
    "std",
]
serde = [
    "dep:serde",
    "ibc-proto/serde",
]
std = [
    "displaydoc/std",
    "prost/std",
    "serde/std",
    "ibc-proto/std",
    "time/std",
]
