upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-11-04 10:42:18 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-04 10:42:18 +0000
commit9394657613014891ff91db6cd0a01b21bb257053 (patch)
treee59ff64c5463039e4304928b3b24377e3e438822 /Cargo.toml
parent52bad9954cdddf55ab749fd0c6387edbc766632f (diff)
feat: implement NIP-01 compliant Nostr relay
- WebSocket-based relay using tokio-tungstenite - Full NIP-01 protocol support (EVENT, REQ, CLOSE) - Event validation (signature and ID) - In-memory event storage - Filter support (IDs, authors, kinds, since/until) - Configuration via environment variables - Nix flake for reproducible builds - Test automation script All 6 NIP-01 smoke tests passing (100%)
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml53
1 files changed, 53 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..dec6113
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,53 @@
1[package]
2name = "ngit-grasp"
3version = "0.1.0"
4edition = "2021"
5authors = ["ngit-grasp contributors"]
6license = "MIT"
7description = "A GRASP (Git Relays Authorized via Signed-Nostr Proofs) implementation in Rust"
8repository = "https://gitworkshop.dev/ngit-grasp"
9
10[dependencies]
11# Async runtime
12tokio = { version = "1.35", features = ["full"] }
13tokio-tungstenite = "0.21"
14
15# WebSocket
16tungstenite = "0.21"
17futures-util = "0.3"
18
19# HTTP server (for future use)
20# actix-web = "4.4"
21# actix-cors = "0.7"
22
23# Nostr
24nostr-sdk = "0.43"
25
26# Serialization
27serde = { version = "1.0", features = ["derive"] }
28serde_json = "1.0"
29
30# Logging
31tracing = "0.1"
32tracing-subscriber = { version = "0.3", features = ["env-filter"] }
33
34# Configuration
35dotenvy = "0.15"
36
37# Error handling
38anyhow = "1.0"
39thiserror = "1.0"
40
41# Git (for future use)
42# git-http-backend = "0.3"
43
44[dev-dependencies]
45# Testing
46tokio-test = "0.4"
47
48[[bin]]
49name = "ngit-grasp"
50path = "src/main.rs"
51
52[workspace]
53members = [".", "grasp-audit"]