# 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 = "dusk-core"
version = "1.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Types used for interacting with Dusk's transfer and stake contracts."
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/dusk-network/rusk"
resolver = "2"

[features]
abi = ["piecrust-uplink/abi"]
abi-debug = [
    "abi",
    "piecrust-uplink/debug",
]
abi-dlmalloc = [
    "abi",
    "piecrust-uplink/dlmalloc",
]
groth16 = [
    "ark-groth16",
    "ark-bn254",
    "ark-relations",
    "ark-serialize",
]
kzg = ["c-kzg"]
parallel = ["bls12_381-bls/parallel"]
plonk = [
    "dusk-plonk",
    "phoenix-circuits/plonk",
]
serde = [
    "dep:serde",
    "dep:serde_with",
    "piecrust-uplink/serde",
    "bls12_381-bls/serde",
    "phoenix-core/serde",
    "jubjub-schnorr/serde",
]
std = ["dusk-plonk/std"]
zk = [
    "plonk",
    "groth16",
]

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

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

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

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

[dependencies.ark-bn254]
version = "0.4"
features = ["curve"]
optional = true
default-features = false

[dependencies.ark-groth16]
version = "0.4"
optional = true
default-features = false

[dependencies.ark-relations]
version = "0.4"
optional = true
default-features = false

[dependencies.ark-serialize]
version = "0.4.2"
optional = true
default-features = false

[dependencies.blake2b_simd]
version = "=1.0.3"
default-features = false

[dependencies.bls12_381-bls]
version = "0.6.0"
features = [
    "rkyv-impl",
    "insecure-v1-signing",
]
default-features = false

[dependencies.bytecheck]
version = "0.6.12"
default-features = false

[dependencies.c-kzg]
version = "=2.0.0"
optional = true

[dependencies.dusk-bls12_381]
version = "0.14"
features = ["rkyv-impl"]
default-features = false

[dependencies.dusk-bytes]
version = "0.1.7"

[dependencies.dusk-jubjub]
version = "0.15.2"
features = ["rkyv-impl"]
default-features = false

[dependencies.dusk-plonk]
version = "0.22.0"
features = [
    "legacy-proving",
    "rkyv-impl",
    "alloc",
]
optional = true
default-features = false

[dependencies.dusk-poseidon]
version = "0.42.0-rc.0"

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

[dependencies.jubjub-schnorr]
version = "0.7.0-rc.0"
features = ["rkyv-impl"]
default-features = false

[dependencies.phoenix-circuits]
version = "0.8.0"
default-features = false

[dependencies.phoenix-core]
version = "0.35.0"
features = [
    "rkyv-impl",
    "alloc",
]
default-features = false

[dependencies.piecrust-uplink]
version = "0.20.0"

[dependencies.poseidon-merkle]
version = "0.9.0-rc.0"
features = ["rkyv-impl"]

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

[dependencies.rkyv]
version = "0.7.39"
features = ["size_32"]
default-features = false

[dependencies.serde]
version = "1.0.210"
features = ["derive"]
optional = true

[dependencies.serde_with]
version = "3.9"
features = ["hex"]
optional = true
default-features = false

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

[dev-dependencies.rand]
version = "0.8.5"
features = [
    "std",
    "std_rng",
]
default-features = false

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