upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/http/nip11.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-02 15:35:27 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-02 15:35:27 +0000
commit347f17f0f9e3bc791d1fd699467da9fef4dab8ff (patch)
tree7734eae9dd006ff8dac352f1caf5c9225a913d63 /src/http/nip11.rs
parent599d032ff8bbb529575067c193ac498cac590de5 (diff)
landing page add commit hash to version and add curation
Diffstat (limited to 'src/http/nip11.rs')
-rw-r--r--src/http/nip11.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/http/nip11.rs b/src/http/nip11.rs
index 593ef9a..901b676 100644
--- a/src/http/nip11.rs
+++ b/src/http/nip11.rs
@@ -62,8 +62,11 @@ impl RelayInformationDocument {
62 11, // NIP-11: Relay information document (this!) 62 11, // NIP-11: Relay information document (this!)
63 34, // NIP-34: Git repository announcements 63 34, // NIP-34: Git repository announcements
64 ], 64 ],
65 software: env!("CARGO_PKG_NAME").to_string(), 65 software: "https://gitworkshop.dev/danconwaydev.com/ngit-grasp".to_string(),
66 version: env!("CARGO_PKG_VERSION").to_string(), 66 version: match option_env!("GIT_COMMIT_SHORT") {
67 Some(commit) => format!("{}-{}", env!("CARGO_PKG_VERSION"), commit),
68 None => env!("CARGO_PKG_VERSION").to_string(),
69 },
67 70
68 // GRASP-01 Extensions 71 // GRASP-01 Extensions
69 supported_grasps: vec!["GRASP-01".to_string()], 72 supported_grasps: vec!["GRASP-01".to_string()],