Showed the Rust compiler actually used on the information page (#1160)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 15:19:16 +01:00
1 parent 54c3f0b3e0
commit 677b650a79
9 files changed
+144 -17

No files matched your search

@@ -87,7 +87,9 @@ public partial class Information : MSGComponentBase
}
};
private string VersionRust => $"{T("Used Rust compiler")}: v{META_DATA.RustVersion}";
private string VersionRust => string.IsNullOrWhiteSpace(this.RuntimeInfo.RustVersion)
? $"{T("Used Rust compiler")}: {T("unknown")}"
: $"{T("Used Rust compiler")}: v{this.RuntimeInfo.RustVersion}";
private string VersionDotnetRuntime => $"{T("Used .NET runtime")}: v{DotnetRuntimeVersion.Current}";