# 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 = "2018"
rust-version = "1.56.0"
name = "ln-types"
version = "0.2.1"
authors = ["Martin Habovstiak <martin.habovstiak@gmail.com>"]
build = "build.rs"
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common types related to Lightning Network"
readme = "README.md"
keywords = [
    "lightning",
    "network",
    "newtypes",
]
categories = [
    "cryptography::cryptocurrencies",
    "encoding",
    "rust-patterns",
    "value-formatting",
]
license = "MITNFA"
repository = "https://github.com/LNP-BP/ln-types"

[package.metadata.docs.rs]
features = [
    "serde",
    "node_pubkey_verify",
    "node_pubkey_recovery",
    "bitcoin-units/serde",
    "postgres-types",
    "parse_arg",
    "slog",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[dependencies.bitcoin-units]
version = "0.1.2"
optional = true
default-features = false

[dependencies.bytes]
version = "1.1.0"
optional = true

[dependencies.hex-conservative]
version = "0.2.1"
optional = true
default-features = false

[dependencies.parse_arg]
version = "0.1.4"
optional = true

[dependencies.postgres-types-real]
version = "0.2.2"
optional = true
package = "postgres-types"

[dependencies.secp256k1]
version = "0.29.0"
features = ["alloc"]
optional = true
default-features = false

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

[dependencies.slog]
version = "2.7.0"
optional = true
default-features = false

[features]
alloc = []
default = ["std"]
node_pubkey_recovery = [
    "node_pubkey_verify",
    "secp256k1/recovery",
]
node_pubkey_verify = ["secp256k1/hashes"]
postgres-types = [
    "postgres-types-real",
    "bytes",
    "std",
]
secp256k1_std = [
    "secp256k1/std",
    "std",
]
serde_alloc = [
    "alloc",
    "serde/alloc",
]
slog_std = [
    "std",
    "slog/std",
]
std = ["alloc"]
