From 347f17f0f9e3bc791d1fd699467da9fef4dab8ff Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 2 Dec 2025 15:35:27 +0000 Subject: landing page add commit hash to version and add curation --- src/http/nip11.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/http/nip11.rs') 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 { 11, // NIP-11: Relay information document (this!) 34, // NIP-34: Git repository announcements ], - software: env!("CARGO_PKG_NAME").to_string(), - version: env!("CARGO_PKG_VERSION").to_string(), + software: "https://gitworkshop.dev/danconwaydev.com/ngit-grasp".to_string(), + version: match option_env!("GIT_COMMIT_SHORT") { + Some(commit) => format!("{}-{}", env!("CARGO_PKG_VERSION"), commit), + None => env!("CARGO_PKG_VERSION").to_string(), + }, // GRASP-01 Extensions supported_grasps: vec!["GRASP-01".to_string()], -- cgit v1.2.3