mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 15:08:24 +00:00
Add MVP implementation for testing git HTTP protocol compliance: - Add git module with GitClient wrapper for HTTP protocol testing - Add GitHttpProtocolTests with test_gzip_encoded_upload_pack test - Add integration test in ngit-grasp that uses TestRelay fixture The test validates that the server correctly handles gzip-encoded git-upload-pack requests, which was the source of a production bug. Uses actual git fetch operations to test the real production scenario.
50 lines
970 B
TOML
50 lines
970 B
TOML
[package]
|
|
name = "grasp-audit"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
rust-version = "1.75"
|
|
description = "Audit and compliance testing tool for GRASP protocol implementations"
|
|
license = "MIT"
|
|
|
|
[[bin]]
|
|
name = "grasp-audit"
|
|
path = "src/bin/grasp-audit.rs"
|
|
|
|
[dependencies]
|
|
# Nostr
|
|
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", rev = "4767ad13" }
|
|
|
|
# Async
|
|
tokio = { version = "1", features = ["full"] }
|
|
futures = "0.3"
|
|
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
# Error handling
|
|
anyhow = "1"
|
|
thiserror = "1"
|
|
|
|
# CLI
|
|
clap = { version = "4", features = ["derive"] }
|
|
|
|
# Utilities
|
|
uuid = { version = "1", features = ["v4"] }
|
|
chrono = "0.4"
|
|
|
|
# HTTP Client
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
regex = "1"
|
|
|
|
# Compression (for gzip-encoded git requests)
|
|
flate2 = "1"
|
|
|
|
# Logging
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
[dev-dependencies]
|
|
tokio-test = "0.4"
|
|
tempfile = "3"
|