summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml11
1 files changed, 9 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 6f02405..0acbe72 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,8 +8,15 @@ libc = "0.2"
chrono = { version = "0.4", features = ["now"] }
v4l2-sys = { version = "1", path = "v4l2-sys/" }
anyhow = "1"
-gtk4 = { version = "0.9", features = ["v4_12"] }
-zune-jpeg = "0.4"
+gtk4 = { version = "0.9", features = ["v4_12"], optional = true}
+zune-jpeg = { version = "0.4", optional = true }
+
+[features]
+gui = ["gtk4", "zune-jpeg"]
+default = ["gui"]
[[bin]]
name = "sshcamera"
+required-features = ["gui"]
+[[bin]]
+name = "usshcamera"