Enhance printing functionality with SNMP support and update dependencies
- 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.
This commit is contained in:
@@ -23,6 +23,8 @@ 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"
|
||||
|
||||
Reference in New Issue
Block a user