rs-zero 0.1.1

Rust-first microservice framework inspired by go-zero engineering practices
Documentation
# RPC 手册

`rs-zero` 的 `rpc` feature 提供 tonic 相关 helper,用于减少项目重复配置。

## 核心能力

- client endpoint 配置。
- request-id interceptor。
- health server helper。
- graceful shutdown 配合 `rs_zero::core::shutdown_signal`
## 示例

```rust
use rs_zero::core::shutdown_signal;
use rs_zero::rpc::serve_health_with_shutdown;

let addr = "127.0.0.1:50051".parse().unwrap();
serve_health_with_shutdown(addr, shutdown_signal()).await.unwrap();
```

完整示例见 `examples/rpc-hello/src/main.rs`。

## RPC codegen

`rzcli rpc gen` 提供 proto 子集解析和 tonic skeleton 生成。使用方式见 [RPC 服务教程](../tutorials/rpc-service.md)。

## 限制

- 不替代 `protoc`- 生成 skeleton 默认不包含业务实现。
- 复杂 proto 特性需在应用层接入 prost/tonic build。

## 相关测试

- `cargo test --test rpc_integration`
- `cargo test -p rs-zero-cli --test goctl_rpc_compat`