Skip to content

Commit 98fd156

Browse files
committed
monitor: add empty utm module
1 parent 4683504 commit 98fd156

File tree

5 files changed

+128
-4
lines changed

5 files changed

+128
-4
lines changed

Cargo.lock

Lines changed: 120 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

monitor/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@ tracing-subscriber = { workspace = true }
3131
web = { workspace = true }
3232
rand = "0.9.1"
3333

34+
[target.'cfg(target_os = "macos")'.dependencies]
35+
osakit = "0.3.1"
36+
3437
[dev-dependencies]
3538
settings = { workspace = true, features = ["test"] }

monitor/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ mod libvirt;
77
mod policy;
88
mod runner;
99
mod shell;
10+
#[cfg_attr(not(target_os = "macos"), path = "utm_dummy.rs")]
11+
mod utm;
1012

1113
use core::str;
1214
use std::{

monitor/src/utm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#[allow(unused)]
2+
use osakit;

monitor/src/utm_dummy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)