# 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.90"
name = "miden-crypto"
version = "0.22.2"
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"

[package.metadata.cargo-machete]
ignored = [
    "getrandom",
    "rand-utils",
]

[features]
concurrent = [
    "dep:rayon",
    "hashbrown?/rayon",
    "p3-maybe-rayon/parallel",
    "p3-miden-prover/parallel",
    "p3-util/parallel",
    "std",
]
default = [
    "concurrent",
    "std",
]
executable = [
    "concurrent",
    "dep:clap",
    "dep:rand-utils",
]
fuzzing = []
hashmaps = ["dep:hashbrown"]
internal = ["concurrent"]
rocksdb = [
    "concurrent",
    "dep:rocksdb",
]
serde = [
    "dep:serde",
    "serde?/alloc",
]
std = [
    "blake3/std",
    "dep:cc",
    "miden-serde-utils/std",
    "rand/std",
    "rand/thread_rng",
]
testing = ["dep:proptest"]

[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 = "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 = "rand"
path = "benches/rand.rs"
harness = false
required-features = ["std"]

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

[[bench]]
name = "store"
path = "benches/store.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.10"
features = [
    "alloc",
    "stream",
]

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

[dependencies.curve25519-dalek]
version = "4"
default-features = false

[dependencies.ed25519-dalek]
version = "2"
features = ["zeroize"]

[dependencies.flume]
version = "0.11.1"

[dependencies.hashbrown]
version = "0.16"
features = ["serde"]
optional = true

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

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

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

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

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

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

[dependencies.p3-air]
version = "0.4.2"
default-features = false

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

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

[dependencies.p3-commit]
version = "0.4.2"
default-features = false

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

[dependencies.p3-field]
version = "0.4.2"
default-features = false

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

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

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

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

[dependencies.p3-merkle-tree]
version = "0.4.2"
default-features = false

[dependencies.p3-miden-air]
version = "0.4.2"
default-features = false

[dependencies.p3-miden-fri]
version = "0.4.2"
default-features = false

[dependencies.p3-miden-prover]
version = "0.4.2"
default-features = false

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

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

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

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

[dependencies.rand-utils]
version = "0.13"
optional = true
package = "winter-rand-utils"

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

[dependencies.rand_core]
version = "0.9"
default-features = false

[dependencies.rand_hc]
version = "0.3"

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

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

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

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

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

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

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

[dependencies.x25519-dalek]
version = "2.0"
features = ["static_secrets"]
default-features = false

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

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

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

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

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

[dev-dependencies.rand-utils]
version = "0.13"
package = "winter-rand-utils"

[dev-dependencies.rstest]
version = "0.26"

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

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

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

[build-dependencies.glob]
version = "0.3"

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