# 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 = "ed25519-dalek"
version = "3.0.0-pre.2"
authors = [
    "isis lovecruft <isis@patternsinthevoid.net>",
    "Tony Arcieri <bascule@gmail.com>",
    "Michael Rosenberg <michael@mrosenberg.pub>",
]
build = false
exclude = [
    ".gitignore",
    "TESTVECTORS",
    "VALIDATIONVECTORS",
    "res/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast and efficient ed25519 EdDSA key generations, signing, and verification in pure Rust."
homepage = "https://github.com/dalek-cryptography/curve25519-dalek"
documentation = "https://docs.rs/ed25519-dalek"
readme = "README.md"
keywords = [
    "cryptography",
    "ed25519",
    "curve25519",
    "signature",
    "ECC",
]
categories = [
    "cryptography",
    "no-std",
]
license = "BSD-3-Clause"
repository = "https://github.com/dalek-cryptography/curve25519-dalek/tree/main/ed25519-dalek"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "batch",
    "digest",
    "hazmat",
    "pem",
    "serde",
]
rustdoc-args = [
    "--html-in-header",
    "docs/assets/rustdoc-include-katex-header.html",
    "--cfg",
    "docsrs",
]

[features]
alloc = [
    "curve25519-dalek/alloc",
    "ed25519/alloc",
    "signature/alloc",
    "serde?/alloc",
    "zeroize?/alloc",
]
batch = [
    "alloc",
    "dep:keccak",
    "rand_core",
]
default = [
    "fast",
    "zeroize",
]
digest = ["signature/digest"]
fast = ["curve25519-dalek/precomputed-tables"]
hazmat = []
legacy_compatibility = ["curve25519-dalek/legacy_compatibility"]
pem = [
    "alloc",
    "ed25519/pem",
    "pkcs8",
]
pkcs8 = ["ed25519/pkcs8"]
rand_core = ["dep:rand_core"]
serde = [
    "dep:serde",
    "ed25519/serde",
]
zeroize = [
    "dep:zeroize",
    "curve25519-dalek/zeroize",
]

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

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

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

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

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

[[bench]]
name = "ed25519_benchmarks"
path = "benches/ed25519_benchmarks.rs"
harness = false
required-features = ["rand_core"]

[dependencies.curve25519-dalek]
version = "=5.0.0-pre.2"
features = ["digest"]
default-features = false

[dependencies.ed25519]
version = "3.0.0-rc.2"
default-features = false

[dependencies.keccak]
version = "0.2.0-rc.0"
optional = true
default-features = false

[dependencies.rand_core]
version = "0.10.0-rc-2"
optional = true
default-features = false

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

[dependencies.sha2]
version = "0.11.0-rc.3"
default-features = false

[dependencies.signature]
version = "3.0.0-rc.5"
optional = true
default-features = false

[dependencies.subtle]
version = "2.3.0"
default-features = false

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

[dev-dependencies.bincode]
version = "1.0"

[dev-dependencies.blake2]
version = "0.11.0-rc.3"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.curve25519-dalek]
version = "=5.0.0-pre.2"
features = [
    "digest",
    "rand_core",
]
default-features = false

[dev-dependencies.hex]
version = "0.4"

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

[dev-dependencies.rand]
version = "0.10.0-rc.5"
features = ["chacha"]

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

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

[dev-dependencies.sha3]
version = "0.11.0-rc.3"

[dev-dependencies.strobe-rs]
version = "0.5"

[dev-dependencies.toml]
version = "0.9"

[dev-dependencies.x25519-dalek]
version = "=3.0.0-pre.2"
features = ["static_secrets"]
default-features = false
