-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
81 lines (69 loc) · 2.56 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[package]
name = "awatcher"
description = "An activity and idle watcher based on ActivityWatch"
version = { workspace = true }
authors = ["Demmie <[email protected]>"]
edition = "2021"
license-file = "LICENSE"
repository = "https://github.com/2e3s/awatcher"
[[bin]]
name = "awatcher"
path = "src/main.rs"
[build-dependencies]
image = { version = "0.25.5" }
[workspace]
members = ["watchers"]
[workspace.package]
version = "0.3.1"
[workspace.dependencies]
anyhow = "1.0.93"
log = { version = "0.4.22", features = ["std"] }
tokio = { version = "1.41.1" }
serde = "1.0.214"
[dev-dependencies]
rstest = "0.23.0"
tempfile = "3.13.0"
[dependencies]
watchers = { path = "./watchers", default-features = false }
chrono = "0.4.38"
toml = "0.8.19"
clap = { version = "4.5.20", features = ["string"] }
fern = { version = "0.7.0", features = ["colored"] }
log = { workspace = true }
anyhow = { workspace = true }
tokio = { workspace = true, features = ["rt", "macros", "signal"] }
ksni = {version = "0.2.2", optional = true}
aw-server = { git = "https://github.com/ActivityWatch/aw-server-rust", optional = true, rev = "656f3c9" }
aw-datastore = { git = "https://github.com/ActivityWatch/aw-server-rust", optional = true, rev = "656f3c9" }
open = { version = "5.3.0", optional = true }
serde = { workspace = true, optional = true }
[features]
default = ["gnome", "kwin_window"]
gnome = ["watchers/gnome"]
kwin_window = ["watchers/kwin_window"]
bundle = ["ksni", "aw-server", "aw-datastore", "open", "serde"]
[package.metadata.deb.variants.module]
name = "aw-awatcher"
extended-description = """\
Awatcher is a window activity and idle watcher for ActivityWatch.
The goal is to compensate the fragmentation of desktop environments on Linux by supporting all reportable environments with both Wayland and X11.
"""
assets = [
["target/release/awatcher", "usr/bin/aw-awatcher", "755"],
["README.md", "usr/share/doc/aw-awatcher/README", "644"],
]
conflicts = "awatcher"
[package.metadata.deb.variants.bundle]
name = "awatcher"
features = ["bundle"]
extended-description = """\
Awatcher is a window activity and idle watcher with a tray, server and UI for statistics.
The goal is to compensate the fragmentation of desktop environments on Linux by supporting all reportable environments with both Wayland and X11.
"""
assets = [
["src/bundle/awatcher.desktop", "usr/share/applications/", "644"],
["src/bundle/logo.png", "usr/share/awatcher/icons/awatcher.png", "644"],
["target/release/awatcher", "usr/bin/", "755"],
["README.md", "usr/share/doc/awatcher/README", "644"],
]
conflicts = "aw-awatcher"