# 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 = "nebula-vrf"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "BLS12-381 VRF core for Soroban: local randomness with optional on-chain verification"
readme = "README.md"
keywords = [
    "vrf",
    "bls12-381",
    "soroban",
    "randomness",
    "stellar",
]
categories = [
    "cryptography",
    "algorithms",
]
license = "MIT"
repository = "https://github.com/NebulaVRF/vrf-core"

[features]
api = [
    "axum",
    "tokio",
    "serde",
    "serde_json",
    "tracing",
    "tracing-subscriber",
]
default = []

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

[[bin]]
name = "nebula_vrf_api"
path = "api/main.rs"
required-features = ["api"]

[[example]]
name = "sample_payloads"
path = "examples/sample_payloads.rs"

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

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

[dependencies.axum]
version = "0.7"
optional = true

[dependencies.base64]
version = "0.21"

[dependencies.blst]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.rand]
version = "0.8"

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.tokio]
version = "1.36"
features = ["full"]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
optional = true

[dev-dependencies.statrs]
version = "0.16"
