leanshot/Cargo.toml
2021-07-28 16:25:32 -05:00

39 lines
954 B
TOML

[package]
name = "leanshot"
description = "Screenshot capture for Linux."
version = "0.5.0"
repository = "https://git.mzhang.io/michael/leanshot"
license = "MIT"
edition = "2018"
authors = ["Michael Zhang <mail@mzhang.io>"]
[workspace]
members = ["x11"]
[features]
default = ["backend-x11", "backend-x11-glx"]
backend-x11 = ["leanshot-x11"]
backend-x11-glx = ["backend-x11", "leanshot-x11/glx"]
backend-xcb = ["xcb-util", "xcb"]
[dependencies]
anyhow = "1.0.42"
image = { version = "0.23.14", default-features = false, features = ["jpeg", "png"] }
log = "0.4.14"
stderrlog = "0.5.1"
structopt = "0.3.22"
libc = "0.2.98"
# x11
leanshot-x11 = { path = "x11", optional = true }
# xcb
xcb-util = { version = "0.3.0", features = ["image", "cursor"], optional = true }
xcb = { version = "0.9.0", optional = true }
[package.metadata.cargo-all-features]
skip_feature_sets = [
["backend-x11", "backend-xcb"],
[],
]
skip_optional_dependencies = true