printer_event_handler 2.0.0

A cross-platform printer status monitoring library for Windows and Linux
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 = "printer_event_handler"
version = "2.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cross-platform printer status monitoring library for Windows and Linux"
readme = "README.md"
keywords = [
    "printer",
    "monitoring",
    "cups",
    "wmi",
    "cross-platform",
]
categories = [
    "os",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/PajakKamil/printer_event_handler"

[features]
default = ["rt-multi-thread"]
events = [
    "dep:zbus",
    "dep:futures-util",
]
linux-libcups = []
rt-multi-thread = ["tokio/rt-multi-thread"]
serde = []
tracing = ["dep:tracing"]

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

[[bin]]
name = "printer_monitor"
path = "src/main.rs"
required-features = ["rt-multi-thread"]

[[test]]
name = "integration_real_events"
path = "tests/integration_real_events.rs"

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

[dependencies.chrono]
version = "0.4.44"
features = ["serde"]

[dependencies.env_logger]
version = "0.11.10"

[dependencies.futures-util]
version = "0.3"
optional = true
default-features = false

[dependencies.log]
version = "0.4.29"

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

[dependencies.tokio]
version = "1.52.3"
features = [
    "rt",
    "macros",
    "time",
    "process",
    "fs",
    "sync",
]

[dependencies.tokio-stream]
version = "0.1.18"

[dependencies.tokio-util]
version = "0.7.18"

[dependencies.tracing]
version = "0.1.44"
optional = true

[dependencies.zbus]
version = "5"
features = ["tokio"]
optional = true
default-features = false

[dev-dependencies.async-trait]
version = "0.1.89"

[dev-dependencies.serde_json]
version = "1.0.149"

[target."cfg(windows)".dependencies.wmi]
version = "0.18.4"