2018-05-13 21:42:19 +00:00
|
|
|
[package]
|
2018-09-30 12:25:18 +00:00
|
|
|
name = "leanshot"
|
|
|
|
description = "Screenshot capture for Linux."
|
2021-02-21 12:52:09 +00:00
|
|
|
version = "0.5.0"
|
2020-12-24 00:30:32 +00:00
|
|
|
repository = "https://git.mzhang.io/michael/leanshot"
|
2021-07-13 16:03:02 +00:00
|
|
|
license = "MIT"
|
2020-06-26 18:51:31 +00:00
|
|
|
edition = "2018"
|
2020-12-24 00:30:32 +00:00
|
|
|
authors = ["Michael Zhang <mail@mzhang.io>"]
|
2018-09-11 01:31:25 +00:00
|
|
|
|
2021-07-28 20:53:10 +00:00
|
|
|
[workspace]
|
|
|
|
members = ["x11"]
|
|
|
|
|
2021-07-28 21:05:13 +00:00
|
|
|
[features]
|
|
|
|
default = ["backend-x11", "backend-x11-glx"]
|
2021-07-28 21:25:32 +00:00
|
|
|
backend-x11 = ["leanshot-x11"]
|
|
|
|
backend-x11-glx = ["backend-x11", "leanshot-x11/glx"]
|
2021-07-28 21:05:13 +00:00
|
|
|
backend-xcb = ["xcb-util", "xcb"]
|
|
|
|
|
2018-05-13 21:42:19 +00:00
|
|
|
[dependencies]
|
2021-07-28 21:25:32 +00:00
|
|
|
anyhow = "1.0.42"
|
|
|
|
image = { version = "0.23.14", default-features = false, features = ["jpeg", "png"] }
|
2021-02-21 12:54:28 +00:00
|
|
|
log = "0.4.14"
|
|
|
|
stderrlog = "0.5.1"
|
2021-07-28 21:25:32 +00:00
|
|
|
structopt = "0.3.22"
|
|
|
|
libc = "0.2.98"
|
2021-07-28 21:05:13 +00:00
|
|
|
|
2021-07-28 21:25:32 +00:00
|
|
|
# x11
|
|
|
|
leanshot-x11 = { path = "x11", optional = true }
|
|
|
|
|
|
|
|
# xcb
|
2021-07-28 21:05:13 +00:00
|
|
|
xcb-util = { version = "0.3.0", features = ["image", "cursor"], optional = true }
|
|
|
|
xcb = { version = "0.9.0", optional = true }
|
2021-07-28 21:25:32 +00:00
|
|
|
|
|
|
|
[package.metadata.cargo-all-features]
|
|
|
|
skip_feature_sets = [
|
|
|
|
["backend-x11", "backend-xcb"],
|
|
|
|
[],
|
|
|
|
]
|
|
|
|
skip_optional_dependencies = true
|