diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-04 10:42:18 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-04 10:42:18 +0000 |
| commit | 9394657613014891ff91db6cd0a01b21bb257053 (patch) | |
| tree | e59ff64c5463039e4304928b3b24377e3e438822 /Cargo.toml | |
| parent | 52bad9954cdddf55ab749fd0c6387edbc766632f (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.toml | 53 |
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] | ||
| 2 | name = "ngit-grasp" | ||
| 3 | version = "0.1.0" | ||
| 4 | edition = "2021" | ||
| 5 | authors = ["ngit-grasp contributors"] | ||
| 6 | license = "MIT" | ||
| 7 | description = "A GRASP (Git Relays Authorized via Signed-Nostr Proofs) implementation in Rust" | ||
| 8 | repository = "https://gitworkshop.dev/ngit-grasp" | ||
| 9 | |||
| 10 | [dependencies] | ||
| 11 | # Async runtime | ||
| 12 | tokio = { version = "1.35", features = ["full"] } | ||
| 13 | tokio-tungstenite = "0.21" | ||
| 14 | |||
| 15 | # WebSocket | ||
| 16 | tungstenite = "0.21" | ||
| 17 | futures-util = "0.3" | ||
| 18 | |||
| 19 | # HTTP server (for future use) | ||
| 20 | # actix-web = "4.4" | ||
| 21 | # actix-cors = "0.7" | ||
| 22 | |||
| 23 | # Nostr | ||
| 24 | nostr-sdk = "0.43" | ||
| 25 | |||
| 26 | # Serialization | ||
| 27 | serde = { version = "1.0", features = ["derive"] } | ||
| 28 | serde_json = "1.0" | ||
| 29 | |||
| 30 | # Logging | ||
| 31 | tracing = "0.1" | ||
| 32 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } | ||
| 33 | |||
| 34 | # Configuration | ||
| 35 | dotenvy = "0.15" | ||
| 36 | |||
| 37 | # Error handling | ||
| 38 | anyhow = "1.0" | ||
| 39 | thiserror = "1.0" | ||
| 40 | |||
| 41 | # Git (for future use) | ||
| 42 | # git-http-backend = "0.3" | ||
| 43 | |||
| 44 | [dev-dependencies] | ||
| 45 | # Testing | ||
| 46 | tokio-test = "0.4" | ||
| 47 | |||
| 48 | [[bin]] | ||
| 49 | name = "ngit-grasp" | ||
| 50 | path = "src/main.rs" | ||
| 51 | |||
| 52 | [workspace] | ||
| 53 | members = [".", "grasp-audit"] | ||