# 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 = "2021"
name = "jubjub-plus"
version = "0.10.7"
authors = [
    "Sean Bowe <ewillbefull@gmail.com>",
    "Eirik Ogilvie-Wigley <eowigley@gmail.com>",
    "Jack Grigg <thestr4d@gmail.com>",
    "Michael Lodder <redmike7@gmail.com>",
]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Implementation of the Jubjub elliptic curve group"
homepage = "https://github.com/zkcrypto/jubjub"
documentation = "https://docs.rs/jubjub/"
readme = "README.md"
license = "MIT/Apache-2.0"
repository = "https://github.com/LIT-Protocol/jubjub"

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

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

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

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

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

[[bench]]
name = "fq_bench"
path = "benches/fq_bench.rs"
harness = false

[[bench]]
name = "fr_bench"
path = "benches/fr_bench.rs"
harness = false

[[bench]]
name = "point_bench"
path = "benches/point_bench.rs"
harness = false

[dependencies.bitvec]
version = "1"
default-features = false

[dependencies.bls12_381_plus]
version = "0.8.18"
features = [
    "groups",
    "pairings",
]
default-features = false

[dependencies.elliptic-curve]
version = "0.13"
features = ["hash2curve"]

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

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

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

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

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

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

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

[dependencies.zeroize]
version = "1.8"

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

[dev-dependencies.csv]
version = ">= 1.0, < 1.2"

[dev-dependencies.elliptic-curve-tools]
version = "0.1.1"

[dev-dependencies.rand_xorshift]
version = "0.3"
default-features = false

[dev-dependencies.serde_bare]
version = "0.5"

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

[dev-dependencies.vsss-rs]
version = "5.0.0-rc0"

[features]
alloc = [
    "ff/alloc",
    "group/alloc",
    "bls12_381_plus/alloc",
]
bits = ["ff/bits"]
default = [
    "std",
    "bits",
    "serde",
]
serde = [
    "dep:serde",
    "hex",
]
std = [
    "alloc",
    "bits",
    "bls12_381_plus/std",
]
