whatawhat-lib 0.1.0

A collection of utils for windows and linux for collecting activity data
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "whatawhat-lib"
version = "0.1.0"
authors = [
    "Andrii Zahorulko",
    "Demmie <2e3s19@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A collection of utils for windows and linux for collecting activity data"
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/Anoromi/whatawhat-lib"

[features]
gnome = ["dep:zbus"]
kde = [
    "wayland",
    "dep:zbus",
]
wayland = [
    "dep:wayland-client",
    "dep:wayland-protocols",
    "dep:wayland-protocols-plasma",
    "dep:wayland-protocols-wlr",
]
win = ["dep:windows"]
x11 = ["dep:xcb"]

[lib]
name = "whatawhat_lib"
path = "src/lib.rs"

[[example]]
name = "run_generic"
path = "examples/run_generic.rs"

[[example]]
name = "run_gnome"
path = "examples/run_gnome.rs"

[[example]]
name = "run_kde"
path = "examples/run_kde.rs"

[[example]]
name = "run_wayland"
path = "examples/run_wayland.rs"

[dependencies.anyhow]
version = "1.0.98"
features = ["backtrace"]

[dependencies.async-trait]
version = "0.1.88"

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.chrono]
version = "0.4.41"

[dependencies.serde]
version = "1.0.219"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.142"

[dependencies.sysinfo]
version = "0.36.1"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
]

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-subscriber]
version = "0.3.19"

[dependencies.wayland-client]
version = "0.31.11"
optional = true

[dependencies.wayland-protocols]
version = "0.32.9"
features = [
    "staging",
    "client",
]
optional = true

[dependencies.wayland-protocols-plasma]
version = "0.3.9"
features = ["client"]
optional = true

[dependencies.wayland-protocols-wlr]
version = "0.3.9"
features = ["client"]
optional = true

[dependencies.windows]
version = "0.61.3"
features = [
    "Win32_UI_WindowsAndMessaging",
    "Win32_System_SystemInformation",
    "Win32_System_Threading",
    "Win32_UI_Input_KeyboardAndMouse",
    "Win32_UI_WindowsAndMessaging",
    "Win32_UI_Shell",
    "Win32_System_Diagnostics_Debug",
    "Win32_System_SystemServices",
]
optional = true

[dependencies.xcb]
version = "^1.6"
features = ["screensaver"]
optional = true

[dependencies.zbus]
version = "5.9.0"
optional = true

[dev-dependencies.mockall]
version = "0.13.1"

[dev-dependencies.tokio]
version = "1.47.1"
features = ["full"]