# 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 = "snarkos-node-rest"
version = "3.8.0"
authors = ["The Aleo Team <hello@aleo.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A REST API server for a decentralized virtual machine"
homepage = "https://aleo.org"
readme = "README.md"
keywords = [
    "aleo",
    "cryptography",
    "blockchain",
    "decentralized",
    "zero-knowledge",
]
categories = [
    "cryptography",
    "cryptography::cryptocurrencies",
    "os",
]
license = "Apache-2.0"
repository = "https://github.com/ProvableHQ/snarkOS"

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

[dependencies.anyhow]
version = "1.0.79"

[dependencies.axum]
version = "0.8"

[dependencies.axum-extra]
version = "0.10"
features = [
    "erased-json",
    "typed-header",
]

[dependencies.http]
version = "1.0"

[dependencies.indexmap]
version = "2.1"
features = [
    "serde",
    "rayon",
]

[dependencies.jsonwebtoken]
version = "9.2"

[dependencies.locktick]
version = "0.3"
features = ["parking_lot"]
optional = true

[dependencies.once_cell]
version = "1.19"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rand]
version = "0.8"

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

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.snarkos-node-consensus]
version = "=3.8.0"

[dependencies.snarkos-node-router]
version = "=3.8.0"

[dependencies.snarkvm]
version = "=3.8.0"
features = [
    "circuit",
    "console",
    "rocks",
]

[dependencies.snarkvm-synthesizer]
version = "=3.8.0"
optional = true
default-features = false

[dependencies.time]
version = "0.3"

[dependencies.tokio]
version = "1"

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
]

[dependencies.tower_governor]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[features]
cuda = [
    "snarkvm/cuda",
    "snarkos-node-consensus/cuda",
    "snarkos-node-router/cuda",
]
default = ["parallel"]
history = ["snarkvm-synthesizer/history"]
locktick = [
    "dep:locktick",
    "snarkos-node-consensus/locktick",
    "snarkos-node-router/locktick",
    "snarkvm-synthesizer/locktick",
]
parallel = ["rayon"]
telemetry = []
