workspace: refine runtime and cleanup lists

This commit is contained in:
2026-07-12 06:57:10 +09:00
parent c5aae4b234
commit d8c0853d55
8 changed files with 161 additions and 128 deletions
+8
View File
@@ -50,6 +50,10 @@ impl Default for RuntimeOptions {
}
}
fn unknown_platform_component() -> String {
"unknown".to_string()
}
/// Management-plane summary for a Runtime.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct RuntimeSummary {
@@ -63,6 +67,10 @@ pub struct RuntimeSummary {
pub cancelled_worker_count: usize,
pub diagnostic_count: usize,
pub limits: RuntimeLimits,
#[serde(default = "unknown_platform_component")]
pub os: String,
#[serde(default = "unknown_platform_component")]
pub arch: String,
#[serde(default)]
pub worker_creation_available: bool,
}
+2
View File
@@ -162,6 +162,8 @@ impl Runtime {
cancelled_worker_count,
diagnostic_count: state.diagnostics.len(),
limits: state.limits.clone(),
os: std::env::consts::OS.to_string(),
arch: std::env::consts::ARCH.to_string(),
worker_creation_available: state.execution_backend.is_some(),
})
}