[package] name = "moomer" version = "0.1.0" edition = "2021" [lib] name = "moomer" path = "src/lib.rs" [[bin]] name = "moomer" path = "src/main.rs" required-features = ["gui"] [features] default = ["gui"] # GUI / capture stack — only needed for the binary. Lib CI uses --no-default-features. gui = ["dep:xcap", "dep:winit", "dep:pixels", "dep:image"] [dependencies] # screenshots is unmaintained (future-incompat); xcap is the maintained replacement. xcap = { version = "0.4", optional = true } winit = { version = "0.28", optional = true } pixels = { version = "0.13", optional = true } image = { version = "0.25", optional = true } [target.'cfg(target_os = "macos")'.dependencies] cocoa = "0.25" objc = "0.2" libc = "0.2" # The old `objc` crate checks `feature = "cargo-clippy"` inside macros. # Declare it so rustc's unexpected_cfgs lint stays quiet. [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(feature, values("cargo-clippy"))'] }