Update dependencies and refactor application structure
- Updated various dependencies in `Cargo.toml` to their latest versions, including `tonic`, `tokio`, and `url`. - Refactored `ServerConfig` to include a new `grpc_target` field, replacing the previous bind and port fields. - Removed the `routes.rs` file and integrated its functionality into the main application logic. - Enhanced the `PrinterInfo` struct to include additional fields for printer details. - Simplified the main application flow by directly using the `ControlService` for handling requests. - Cleaned up unused code and improved overall organization of the project structure.
This commit is contained in:
14
Cargo.toml
14
Cargo.toml
@@ -6,8 +6,6 @@ edition = "2024"
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
async-trait = "0.1"
|
||||
axum = { version = "0.7", features = ["multipart", "json"] }
|
||||
base64 = "0.21"
|
||||
config = { version = "0.14", default-features = false, features = ["yaml"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
@@ -16,6 +14,16 @@ 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"] }
|
||||
tower-http = { version = "0.5", features = ["trace"] }
|
||||
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"
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = "0.11"
|
||||
protoc-bin-vendored = "3"
|
||||
|
||||
Reference in New Issue
Block a user