feat(server): add gitks gRPC server with environment configuration

- Add dotenvy dependency for environment variable loading
- Integrate tracing-subscriber for structured logging
- Create main.rs entry point with async server initialization
- Implement environment-based host and port configuration
- Set default address to 0.0.0:50051 for gRPC server
- Add proper error handling with Box<dyn std::error::Error>
This commit is contained in:
zhenyi
2026-06-04 14:10:29 +08:00
parent 998f393ed0
commit f0a443932a
3 changed files with 108 additions and 0 deletions
+6
View File
@@ -28,6 +28,12 @@ prost = "0.13"
prost-types = "0.13"
tonic = { version = "0.12", features = ["transport"] }
tempfile = "3"
dotenvy = "0.15"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[[bin]]
name = "gitks"
path = "main.rs"
[build-dependencies]
tonic-build = "0.12"