From b353f4ad2a88b85ac0582c688ddaa52f094e3266 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Tue, 22 Sep 2026 13:00:13 -0700 Subject: [PATCH] Keep the upstream project's name out of the version string brand_version_full! is user-visible -- --version, the startup banner, the console, telemetry and the JMAP session's implementation field -- and the name belongs only in copyright notices and the lineage line. --- crates/types/src/branding.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/types/src/branding.rs b/crates/types/src/branding.rs index 8e6db76..4e280d2 100644 --- a/crates/types/src/branding.rs +++ b/crates/types/src/branding.rs @@ -82,7 +82,11 @@ macro_rules! brand_version { /// this becomes just the version. #[macro_export] macro_rules! brand_version_full { + // The upstream crate version, without naming the upstream project: this + // string is user-visible (--version, the startup banner, the console, + // telemetry and the JMAP session's "implementation" field), and the name + // belongs only in copyright notices and the lineage line. () => { - concat!($crate::brand_version!(), " (Stalwart ", env!("CARGO_PKG_VERSION"), ")") + concat!($crate::brand_version!(), " (upstream ", env!("CARGO_PKG_VERSION"), ")") }; }