From 8d2331af01f9d60c8b58d0b58523aae39947632e Mon Sep 17 00:00:00 2001 From: Clark Moody Date: Fri, 23 Sep 2022 15:41:47 -0500 Subject: New short OS Version field; update doc strings --- native/src/system/information.rs | 25 ++++++++++++++++--------- winit/src/system.rs | 1 + 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/native/src/system/information.rs b/native/src/system/information.rs index fa4a835b..93e7a5a4 100644 --- a/native/src/system/information.rs +++ b/native/src/system/information.rs @@ -1,22 +1,29 @@ /// Contains informations about the system (e.g. system name, processor, memory, graphics adapter). #[derive(Clone, Debug)] pub struct Information { - /// Contains the system name. + /// The operating system name pub system_name: Option, - /// Contains the kernel version. + /// Operating system kernel version pub system_kernel: Option, - /// Contains the systme version. + /// Long operating system version + /// + /// Examples: + /// - MacOS 10.15 Catalina + /// - Windows 10 Pro + /// - Ubuntu 20.04 LTS (Focal Fossa) pub system_version: Option, - /// Contains the processor brand. + /// Short operating system version number + pub system_short_version: Option, + /// Detailed processor model information pub cpu_brand: String, - /// Contains the number of physical cores on the processor. + /// The number of physical cores on the processor pub cpu_cores: Option, - /// Contains the total RAM size in KB. + /// Total RAM size, KB pub memory_total: u64, - /// Contains the system used RAM size in KB. + /// Memory used by this process, KB pub memory_used: Option, - /// Contains the graphics backend. + /// Underlying graphics backend for rendering pub graphics_backend: String, - /// Contains the graphics adapter. + /// Model information for the active graphics adapter pub graphics_adapter: String, } diff --git a/winit/src/system.rs b/winit/src/system.rs index 0303707e..619086b8 100644 --- a/winit/src/system.rs +++ b/winit/src/system.rs @@ -31,6 +31,7 @@ pub(crate) fn information( system_name: system.name(), system_kernel: system.kernel_version(), system_version: system.long_os_version(), + system_short_version: system.os_version(), cpu_brand: cpu.brand().into(), cpu_cores: system.physical_core_count(), memory_total: system.total_memory(), -- cgit