Logo
Explore Help
Register Sign In
lan/CarrotPrint
1
0
Fork 0
You've already forked CarrotPrint
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
5789a4346a727f0fe7ff0364dfb1eba9781164cb
CarrotPrint/build.rs

13 lines
330 B
Rust
Raw Normal View History

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
fn main() {
let protoc = protoc_bin_vendored::protoc_bin_path().expect("failed to fetch protoc");
unsafe {
std::env::set_var("PROTOC", protoc);
}
tonic_build::configure()
.build_server(false)
.compile(&["proto/control.proto"], &["proto"])
.expect("failed to compile protobuf");
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 24.7.0 Page: 295ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API