# 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 = "2024"
rust-version = "1.85"
name = "ecdsa"
version = "0.17.0-rc.17"
authors = ["RustCrypto Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Pure Rust implementation of the Elliptic Curve Digital Signature Algorithm
(ECDSA) as specified in FIPS 186-4 (Digital Signature Standard), providing
RFC6979 deterministic signatures as well as support for added entropy
"""
homepage = "https://github.com/RustCrypto/signatures/tree/master/ecdsa"
readme = "README.md"
keywords = [
    "crypto",
    "ecc",
    "nist",
    "secp256k1",
    "signature",
]
categories = [
    "cryptography",
    "no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/signatures"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
algorithm = [
    "dep:rfc6979",
    "digest",
    "elliptic-curve/arithmetic",
    "hazmat",
]
alloc = [
    "elliptic-curve/alloc",
    "signature/alloc",
    "spki/alloc",
]
default = ["digest"]
der = ["dep:der"]
dev = [
    "algorithm",
    "digest/dev",
    "elliptic-curve/dev",
]
digest = [
    "dep:digest",
    "elliptic-curve/digest",
    "signature/digest",
]
getrandom = ["elliptic-curve/getrandom"]
hazmat = []
pem = [
    "elliptic-curve/pem",
    "pkcs8",
]
pkcs8 = [
    "der",
    "digest",
    "elliptic-curve/pkcs8",
]
serde = [
    "dep:serdect",
    "elliptic-curve/serde",
    "pkcs8",
]
std = [
    "alloc",
    "elliptic-curve/std",
]

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

[[test]]
name = "lib"
path = "tests/lib.rs"

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

[dependencies.digest]
version = "0.11"
features = ["oid"]
optional = true
default-features = false

[dependencies.elliptic-curve]
version = "0.14.0-rc.31"
features = ["sec1"]
default-features = false

[dependencies.rfc6979]
version = "0.5.0-rc.5"
optional = true

[dependencies.serdect]
version = "0.4"
features = ["alloc"]
optional = true
default-features = false

[dependencies.sha2]
version = "0.11"
features = ["oid"]
optional = true
default-features = false

[dependencies.signature]
version = "3.0.0-rc.10"
features = ["rand_core"]
default-features = false

[dependencies.spki]
version = "0.8"
optional = true
default-features = false

[dependencies.zeroize]
version = "1.5"
default-features = false

[dev-dependencies.elliptic-curve]
version = "0.14.0-rc.31"
features = ["dev"]
default-features = false

[dev-dependencies.hex-literal]
version = "1"

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