# 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.82"
name = "neco-secp"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minimal secp256k1 and Nostr signing core"
documentation = "https://docs.rs/neco-secp"
readme = "README.md"
keywords = [
    "secp256k1",
    "schnorr",
    "nostr",
    "crypto",
]
categories = ["cryptography"]
license = "MIT"
repository = "https://github.com/barineco/neco-crates"

[features]
batch = []
default = ["nostr"]
nip04 = [
    "dep:aes",
    "dep:base64",
    "dep:cbc",
]
nip19 = ["dep:bech32"]
nip44 = [
    "dep:base64",
    "dep:chacha20",
    "dep:hkdf",
    "dep:hmac",
]
nostr = ["dep:serde_json"]
serde = ["dep:serde"]

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

[[bench]]
name = "vanity_bench"
path = "benches/vanity_bench.rs"

[dependencies.aes]
version = "0.8"
optional = true

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bech32]
version = "0.9"
optional = true

[dependencies.cbc]
version = "0.1"
optional = true

[dependencies.chacha20]
version = "0.9"
optional = true

[dependencies.hkdf]
version = "0.12"
optional = true

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.k256]
version = "0.13"
features = [
    "ecdh",
    "schnorr",
]

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sha2]
version = "0.10"
