neve 0.1.1

A read-only cache for avalanchego's JSON-RPC frontend API, backed by a local block store.
# 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 = "neve"
version = "0.1.1"
authors = ["Ron Kuris <ron.kuris@avalabs.org>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A read-only cache for avalanchego's JSON-RPC frontend API, backed by a local block store."
homepage = "https://github.com/rkuris/neve"
readme = "README.md"
keywords = [
    "avalanche",
    "json-rpc",
    "cache",
    "blockchain",
]
categories = [
    "caching",
    "cryptography::cryptocurrencies",
]
license = "MIT"
repository = "https://github.com/rkuris/neve"

[[bin]]
name = "neve"
path = "src/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.blockstore]
version = "0.2.0"
features = ["metrics"]
package = "blockdb"

[dependencies.bytes]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.fjall]
version = "3"

[dependencies.futures-util]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.http]
version = "1"

[dependencies.http-body]
version = "1"

[dependencies.http-body-util]
version = "0.1"

[dependencies.human_bytes]
version = "0.4"

[dependencies.humantime]
version = "2"

[dependencies.hyper]
version = "1"
features = ["server"]

[dependencies.hyper-util]
version = "0.1"
features = [
    "server-auto",
    "tokio",
]

[dependencies.jsonrpsee]
version = "0.26"
features = [
    "server",
    "macros",
]

[dependencies.memory-stats]
version = "1"

[dependencies.metrics]
version = "0.24"

[dependencies.metrics-exporter-prometheus]
version = "0.18"
default-features = false

[dependencies.metrics-process]
version = "2.4.3"

[dependencies.parse_duration]
version = "2"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls-no-provider",
]
default-features = false

[dependencies.rustls]
version = "0.23"
features = ["ring"]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "signal",
    "sync",
]

[dependencies.tokio-tungstenite]
version = "0.29"
features = ["rustls-tls-native-roots"]

[dependencies.tower]
version = "0.5"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dev-dependencies.tokio]
version = "1"
features = ["test-util"]

[lints.clippy]
arithmetic_side_effects = "warn"
cast_possible_truncation = "allow"
explicit_deref_methods = "warn"
indexing_slicing = "warn"
missing_const_for_fn = "warn"
needless_pass_by_value = "allow"
str_to_string = "warn"
undocumented_unsafe_blocks = "deny"
unnecessary_wraps = "allow"
unused_self = "allow"
unwrap_used = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "deny"