# 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 = "celestia-types"
version = "0.5.0"
authors = ["Eiger <hello@eiger.co>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types, traits and constants for working with the Celestia ecosystem"
homepage = "https://www.eiger.co"
readme = "README.md"
keywords = [
    "blockchain",
    "celestia",
    "lumina",
]
categories = [
    "encoding",
    "cryptography::cryptocurrencies",
]
license = "Apache-2.0"
repository = "https://github.com/eigerco/lumina"

[package.metadata.cargo-udeps.ignore]
development = ["indoc"]

[package.metadata.docs.rs]
features = [
    "p2p",
    "test-utils",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[dependencies.base64]
version = "0.22.1"

[dependencies.bech32]
version = "0.11.0"

[dependencies.blockstore]
version = "0.7.0"

[dependencies.bytes]
version = "1.6.0"

[dependencies.celestia-proto]
version = "0.3.1"

[dependencies.celestia-tendermint]
version = "0.32.2"
features = [
    "std",
    "rust-crypto",
]
default-features = false

[dependencies.celestia-tendermint-proto]
version = "0.32.2"

[dependencies.cid]
version = "0.11.1"
features = ["std"]
default-features = false

[dependencies.const_format]
version = "0.2.32"

[dependencies.ed25519-consensus]
version = "2.1.0"
optional = true

[dependencies.enum_dispatch]
version = "0.3.13"

[dependencies.leopard-codec]
version = "0.1.0"

[dependencies.libp2p-identity]
version = "0.2.9"
optional = true

[dependencies.multiaddr]
version = "0.18.1"
optional = true

[dependencies.multihash]
version = "0.19.1"

[dependencies.nmt-rs]
version = "0.2.1"

[dependencies.rand]
version = "0.8.5"
optional = true

[dependencies.ruint]
version = "1.12.3"
features = ["serde"]

[dependencies.serde]
version = "1.0.203"
features = ["derive"]

[dependencies.serde_repr]
version = "0.1.19"
optional = true

[dependencies.sha2]
version = "0.10.6"

[dependencies.thiserror]
version = "1.0.61"

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

[dev-dependencies.ed25519-consensus]
version = "2.1.0"

[dev-dependencies.indoc]
version = "2.0.5"

[dev-dependencies.rand]
version = "0.8.5"

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

[features]
default = ["p2p"]
p2p = [
    "dep:libp2p-identity",
    "dep:multiaddr",
    "dep:serde_repr",
]
test-utils = [
    "dep:ed25519-consensus",
    "dep:rand",
]
wasm-bindgen = ["celestia-tendermint/wasm-bindgen"]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.getrandom]
version = "0.2.15"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.42"
