Commit Graph

2 Commits

Author SHA1 Message Date
lan
5789a4346a 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.
2025-12-14 18:25:26 +08:00
lan
2f1bdac921 Add initial project structure with configuration, printing, and routing functionality
- Created a new Rust project with Cargo configuration.
- Added `.gitignore` to exclude target directory.
- Implemented `Cargo.lock` for dependency management.
- Defined application configuration in `config/app.yaml` and `src/config.rs`.
- Developed printing logic in `src/printer.rs` using `cups_rs` for printer interactions.
- Established routing and request handling in `src/routes.rs` for health checks and print requests.
- Introduced a scheduler in `src/scheduler.rs` to manage print job distribution.
- Created models for print parameters and job responses in `src/models.rs`.
- Set up the main application entry point in `src/main.rs` with server initialization and configuration loading.
- Included necessary dependencies in `Cargo.toml` for async handling, tracing, and configuration management.
2025-12-11 19:50:03 +08:00