# 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.93"
name = "miden-crypto"
version = "0.27.1"
authors = ["miden contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Miden Cryptographic primitives"
documentation = "https://docs.rs/miden-crypto/0.18.0"
readme = "README.md"
keywords = [
    "crypto",
    "hash",
    "merkle",
    "miden",
]
categories = [
    "cryptography",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/0xMiden/crypto"

[features]
concurrent = [
    "dep:rayon",
    "miden-lifted-stark/parallel",
    "p3-maybe-rayon/parallel",
    "p3-util/parallel",
    "std",
]
default = [
    "concurrent",
    "std",
]
executable = [
    "concurrent",
    "dep:clap",
]
fuzzing = []
internal = ["concurrent"]
persistent-forest = [
    "rocksdb",
    "serde",
]
rocksdb = [
    "concurrent",
    "dep:rocksdb",
]
serde = [
    "dep:serde",
    "serde?/alloc",
]
std = [
    "blake3/std",
    "dep:cc",
    "miden-serde-utils/std",
    "once_cell/std",
    "rand/std",
    "rand/thread_rng",
    "serde?/std",
]
testing = [
    "dep:proptest",
    "miden-field/testing",
]

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

[[bin]]
name = "miden-crypto"
path = "src/main.rs"
doctest = false
bench = false
required-features = ["executable"]

[[test]]
name = "rocksdb_large_smt"
path = "tests/rocksdb_large_smt.rs"
required-features = [
    "concurrent",
    "rocksdb",
]

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

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

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

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

[[bench]]
name = "large_smt_forest"
path = "benches/large_smt_forest.rs"
harness = false
required-features = ["persistent-forest"]

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

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

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

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

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

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

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

[dependencies.blake3]
version = "1.8"
default-features = false

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

[dependencies.clap]
version = "4"
features = [
    "derive",
    "derive",
]
optional = true

[dependencies.curve25519-dalek]
version = "5.0.0-rc.0"
default-features = false

[dependencies.der]
version = "0.8"
default-features = false

[dependencies.ed25519-dalek]
version = "3.0.0-rc.0"
features = [
    "alloc",
    "zeroize",
]
default-features = false

[dependencies.flume]
version = "0.12.0"
default-features = false

[dependencies.hkdf]
version = "0.13"
default-features = false

[dependencies.k256]
version = "0.14"
features = [
    "alloc",
    "ecdh",
    "ecdsa",
    "pkcs8",
]
default-features = false

[dependencies.miden-crypto-derive]
version = "0.27"

[dependencies.miden-field]
version = "0.27"

[dependencies.miden-lifted-stark]
version = "0.27"
default-features = false

[dependencies.miden-serde-utils]
version = "0.27"

[dependencies.num]
version = "0.4"
features = [
    "alloc",
    "libm",
]
default-features = false

[dependencies.num-complex]
version = "0.4"
default-features = false

[dependencies.once_cell]
version = "1.21"
features = [
    "alloc",
    "critical-section",
]
default-features = false

[dependencies.p3-blake3]
version = "0.6"
default-features = false

[dependencies.p3-challenger]
version = "0.6"
default-features = false

[dependencies.p3-dft]
version = "0.6"
default-features = false

[dependencies.p3-goldilocks]
version = "0.6"
default-features = false

[dependencies.p3-keccak]
version = "0.6"
default-features = false

[dependencies.p3-matrix]
version = "0.6"
default-features = false

[dependencies.p3-maybe-rayon]
version = "0.6"
default-features = false

[dependencies.p3-symmetric]
version = "0.6"
default-features = false

[dependencies.p3-util]
version = "0.6"
default-features = false

[dependencies.proptest]
version = "1.7"
features = ["alloc"]
optional = true
default-features = false

[dependencies.rand]
version = "0.10"
default-features = false

[dependencies.rand_chacha]
version = "0.10"
default-features = false

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.rocksdb]
version = "0.24"
features = [
    "bindgen-runtime",
    "lz4",
    "zstd",
]
optional = true
default-features = false

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

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

[dependencies.sha3]
version = "0.12"
default-features = false

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

[dependencies.thiserror]
version = "2.0"
default-features = false

[dependencies.x25519-dalek]
version = "3.0.0-rc.0"
features = ["static_secrets"]
default-features = false

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

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

[dev-dependencies.hex]
version = "0.4"
features = ["alloc"]
default-features = false

[dev-dependencies.itertools]
version = "0.14"

[dev-dependencies.miden-field]
version = "0.27"
features = ["testing"]

[dev-dependencies.proptest]
version = "1.7"
features = ["alloc"]
default-features = false

[dev-dependencies.seq-macro]
version = "0.3"

[dev-dependencies.shake]
version = "0.1"
default-features = false

[dev-dependencies.tempfile]
version = "3.20"

[build-dependencies.cc]
version = "1.2"
features = ["parallel"]
optional = true

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]
