From 4d59425948efaa3345adb02730d084dc83d559d2 Mon Sep 17 00:00:00 2001 From: dyknon Date: Mon, 24 Feb 2025 21:13:53 +0900 Subject: 32bit arch compat + binary w/o gui. --- Cargo.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') 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" -- cgit v1.2.3