MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / io_platform_uuid

Function io_platform_uuid

packages/server/src/config.rs:143–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142#[cfg(target_os = "macos")]
143fn io_platform_uuid() -> Option<String> {
144 let output = std::process::Command::new("/usr/sbin/ioreg")
145 .args(["-rd1", "-c", "IOPlatformExpertDevice"])
146 .output()
147 .ok()?;
148 if !output.status.success() {
149 return None;
150 }
151 parse_io_platform_uuid(&String::from_utf8_lossy(&output.stdout))
152}
153
154fn parse_io_platform_uuid(output: &str) -> Option<String> {
155 output.lines().find_map(|line| {

Callers 1

machine_identity_sourceFunction · 0.85

Calls 2

parse_io_platform_uuidFunction · 0.85
outputMethod · 0.65

Tested by

no test coverage detected