1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! macOS-specific OS probes.
//!
//! Real version detection on macOS requires either `sysctl(2)` with
//! `kern.osrelease` / `kern.osproductversion` or a parsed
//! `/System/Library/CoreServices/SystemVersion.plist`. Both pull in
//! platform-specific code that is out of scope for the foundation
//! layer; both are deferred to `0.0.5`.
/// Returns the macOS version string.
///
/// Currently always returns `"unknown"`. The real probe (sysctl
/// `kern.osproductversion`) lands in `0.0.5`.
pub
/// Returns the distro identifier.
///
/// macOS has no concept of distributions; this always returns `None`.
pub