summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authordyknon dyknonr5fjp2025-02-24 21:13:53 +0900
committerdyknon dyknonr5fjp2025-02-24 21:13:53 +0900
commit4d59425948efaa3345adb02730d084dc83d559d2 (patch)
tree1c48fe8e0cea926fbf04198f0216e09818fb1e85 /Cargo.toml
parent6ecbf0d55695335f52d6fcf2b6a22ed45f5e4d99 (diff)
32bit arch compat + binary w/o gui.
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"