mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 01:27:21 +00:00
Showed the Rust compiler actually used on the information page (#1160)
This commit is contained in:
1 parent
54c3f0b3e0
commit
677b650a79
9 files changed
+144
-17
No files matched your search
@@ -7,7 +7,6 @@ public class MetaDataAttribute(
|
||||
string buildTime,
|
||||
uint buildNum,
|
||||
string dotnetSdkVersion,
|
||||
string rustVersion,
|
||||
string mudBlazorVersion,
|
||||
string tauriVersion,
|
||||
string appCommitHash
|
||||
@@ -20,12 +19,11 @@ public class MetaDataAttribute(
|
||||
public uint BuildNum => buildNum;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the .NET SDK which built the app. The .NET runtime which runs it is <see cref="DotnetRuntimeVersion.Current"/>.
|
||||
/// Gets the .NET SDK which built the app. The .NET runtime which runs it is <see cref="DotnetRuntimeVersion.Current"/>,
|
||||
/// and the Rust compiler which built the runtime is <see cref="Rust.RuntimeInfoResponse.RustVersion"/>.
|
||||
/// </summary>
|
||||
public string DotnetSdkVersion => dotnetSdkVersion;
|
||||
|
||||
public string RustVersion => rustVersion;
|
||||
|
||||
|
||||
public string MudBlazorVersion => mudBlazorVersion;
|
||||
|
||||
public string TauriVersion => tauriVersion;
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
namespace AIStudio.Tools.Rust;
|
||||
|
||||
public readonly record struct RuntimeInfoResponse(string WorkingDirectory, string ExecutablePath, LinuxPackageType LinuxPackageType, InstallationKind InstallationKind);
|
||||
/// <summary>
|
||||
/// What the runtime tells about itself once the app starts.
|
||||
/// </summary>
|
||||
/// <param name="WorkingDirectory">The working directory of the runtime.</param>
|
||||
/// <param name="ExecutablePath">The path of the runtime's executable.</param>
|
||||
/// <param name="LinuxPackageType">How the Linux build was packaged.</param>
|
||||
/// <param name="InstallationKind">Whether and how the app may update itself.</param>
|
||||
/// <param name="RustVersion">The Rust compiler which built the runtime, e.g., "1.99.1 (commit 58cf8f9c3)". A runtime older than the app, as a development build may be, sends none.</param>
|
||||
public readonly record struct RuntimeInfoResponse(string WorkingDirectory, string ExecutablePath, LinuxPackageType LinuxPackageType, InstallationKind InstallationKind, string? RustVersion);
|
||||
Reference in new issue
Block a user