Files
ngit-grasp/Cargo.toml
T
DanConwayDev 03b582cf69 build(deps): upgrade dependencies and Rust toolchain
Upgrade rust-nostr to 0.45.0-alpha.1 from a patched version to enable
publishing ngit-grasp to crates.io, a Rust toolchain bump via Nix flake
upgrade, and other Rust dependencies.

- rust-nostr stack -> 0.45.0-alpha.1 (off git deps, onto crates.io)
- dashmap 5->6, prometheus 0.13->0.14, rand 0.8->0.10, reqwest ->0.13
  (root dev-dep and grasp-audit), plus semver-compatible lockfile updates
- nix flake update for both flakes (nixpkgs, rust-overlay); Rust 1.96.0
- adapt code to rand 0.10 (RngExt/random) and prometheus 0.14
  (homogeneous with_label_values) breaking changes
- cargo fmt + fix clippy::useless_conversion surfaced by toolchain 1.96
- CHANGELOG: single high-level Unreleased entry
2026-06-16 14:28:18 +00:00

84 lines
1.6 KiB
TOML

[package]
name = "ngit-grasp"
version = "1.1.0"
edition = "2021"
authors = ["ngit-grasp contributors"]
license = "MIT"
description = "A GRASP (Git Relays Authorized via Signed-Nostr Proofs) implementation in Rust"
repository = "https://gitworkshop.dev/ngit-grasp"
[dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
# HTTP server (hyper for relay integration)
hyper = { version = "1.4", features = ["full"] }
hyper-util = { version = "0.1", features = ["tokio", "server", "http1", "http2"] }
http-body-util = "0.1"
# Nostr relay
nostr-relay-builder = "0.45.0-alpha.1"
# Nostr
nostr = "0.45.0-alpha.1"
nostr-sdk = "0.45.0-alpha.1"
nostr-lmdb = "0.45.0-alpha.1"
nostr-memory = "0.45.0-alpha.1"
# Utilities
futures-util = "0.3"
base64 = "0.22"
flate2 = "1.0"
# Metrics
prometheus = "0.14"
dashmap = "6"
lazy_static = "1.4"
# Data structures
indexmap = "2"
# Random (for startup jitter)
rand = "0.10"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Configuration
dotenvy = "0.15"
clap = { version = "4.5", features = ["derive", "env"] }
# Error handling
anyhow = "1.0"
# Async traits
async-trait = "0.1"
# Temporary directories (used for GRASP-06 empty-repo synthesis)
tempfile = "3"
# Git (for future use)
# git-http-backend = "0.3"
[dev-dependencies]
# Testing
grasp-audit = { path = "grasp-audit" }
tempfile = "3"
reqwest = "0.13"
[lib]
name = "ngit_grasp"
path = "src/lib.rs"
[[bin]]
name = "ngit-grasp"
path = "src/main.rs"
[workspace]
members = [".", "grasp-audit"]