moomer/Cargo.toml
lakshit verma 862a9712c8
Fix CI: rustfmt and keep GUI deps off the Linux lib job
Make xcap/winit/pixels/image optional under the default `gui` feature so
`cargo clippy/test --lib --no-default-features` no longer needs dbus on
Ubuntu. Format main.rs for rustfmt.
2026-07-24 01:22:21 +05:30

35 lines
966 B
TOML

[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"))'] }