- Added SNMP configuration options to `AppConfig` for querying printer status. - Extended `PrintInstruction` in the proto file to support additional fields for remote file URLs and raw data. - Implemented logic in `CupsClient` to retrieve printer paper levels and page counts via SNMP. - Updated `Cargo.toml` to include `snmp` and `reqwest` dependencies for network communication. - Refactored `TempPdf` handling to support multiple data sources for printing. - Improved error handling and logging for better diagnostics during print operations.
32 lines
811 B
TOML
32 lines
811 B
TOML
[package]
|
|
name = "print-backend"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
async-trait = "0.1"
|
|
config = { version = "0.14", default-features = false, features = ["yaml"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
thiserror = "1"
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "fs", "signal", "net"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
|
|
cups_rs = "0.3"
|
|
tempfile = "3"
|
|
tonic = { version = "0.11", features = ["transport"] }
|
|
prost = "0.12"
|
|
prost-types = "0.12"
|
|
tokio-stream = "0.1"
|
|
hostname = "0.3"
|
|
sha2 = "0.10"
|
|
url = "2"
|
|
snmp = "0.2"
|
|
reqwest = { version = "0.12", features = ["rustls-tls", "stream"] }
|
|
|
|
[build-dependencies]
|
|
tonic-build = "0.11"
|
|
protoc-bin-vendored = "3"
|