- Introduced terminal.h header file defining the terminal service API. - Implemented integration tests for terminal service registration and health checks. - Added unit tests for FFI layer, health checks, and terminal service functionality. - Created a mock center for testing terminal registration and deregistration. - Ensured proper error handling and response validation in tests.
15 lines
411 B
Rust
15 lines
411 B
Rust
// 用于生成proto相关代码
|
|
fn main() {
|
|
connectrpc_build::Config::new()
|
|
.files(&[
|
|
"control/center.proto",
|
|
"control/terminal.proto",
|
|
"control/common/common.proto",
|
|
"third/grpc/health/v1/health.proto",
|
|
])
|
|
.includes(&["third/", "control/"])
|
|
.include_file("proto_gen.rs")
|
|
.compile()
|
|
.unwrap();
|
|
}
|