awatcher/Cargo.toml
Łukasz Wojniłowicz 994b1cec6a Use SPDX short identifier
According to https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields
the license field should be an SPDX license expression.
2025-02-17 18:12:39 +01:00

101 lines
3.2 KiB
TOML

[package]
name = "awatcher"
description = "An activity and idle watcher based on ActivityWatch"
version = { workspace = true }
authors = ["Demmie <2e3s19@gmail.com>"]
edition = "2021"
license = "MPL-2.0"
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.95"
log = { version = "0.4.22", features = ["std"] }
tokio = { version = "1.42.0" }
serde = "1.0.216"
[dev-dependencies]
rstest = "0.23.0"
tempfile = "3.14.0"
[dependencies]
watchers = { path = "./watchers", default-features = false }
chrono = "0.4.39"
toml = "0.8.19"
clap = { version = "4.5.23", features = ["string"] }
fern = { version = "0.7.1", 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.1", 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"
[package.metadata.generate-rpm.variants.module]
name = "aw-awatcher"
assets = [
{ source = "target/release/awatcher", dest = "/usr/bin/aw-awatcher", mode = "755" },
]
[package.metadata.generate-rpm.variants.module.conflicts]
awatcher = "*"
[package.metadata.generate-rpm.variants.bundle]
assets = [
{ source = "target/release/awatcher", dest = "/usr/bin/awatcher", mode = "755" },
{ source = "src/bundle/awatcher.desktop", dest = "/usr/share/applications/", mode = "644" },
{ source = "src/bundle/logo.png", dest = "/usr/share/awatcher/icons/awatcher.png", mode = "644" },
]
[package.metadata.generate-rpm.variants.bundle.conflicts]
aw-awatcher = "*"