# 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-field"
version = "0.24.0"
authors = ["miden contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A unified field element type for on-chain and off-chain Miden Rust code"
documentation = "https://docs.rs/miden-field"
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-shear]
ignored = ["paste"]

[features]
default = []
testing = ["dep:proptest"]

[lib]
name = "miden_field"
crate-type = ["rlib"]
path = "src/lib.rs"

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

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

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

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

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.miden-serde-utils]
version = "0.24"

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.num-bigint]
version = "0.4"
default-features = false

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.p3-challenger]
version = "0.5"
default-features = false

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.p3-field]
version = "0.5"
default-features = false

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.p3-goldilocks]
version = "0.5"
default-features = false

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.p3-util]
version = "0.5"
default-features = false

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.paste]
version = "1.0.15"

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.proptest]
version = "1.7"
features = [
    "alloc",
    "std",
]
optional = true
default-features = false

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.rand]
version = "0.10"
default-features = false

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

[target.'cfg(not(all(target_family = "wasm", miden)))'.dependencies.subtle]
version = "2.6"
default-features = false

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