Expand description
Root of the rust-grpc-lib crate.
Declares the public module tree and re-exports the proc-macro entry points
from grpc-macro so consumers never need a direct dependency on that crate.
§Modules
| Module | Feature gate | Purpose |
|---|---|---|
auth | auth (default) | JWT interceptors, validation layer, token sources |
build_support | build | Proto code-generation helpers for build.rs |
pool | always | Process-wide lazily-connected channel pool |
§Re-exported macros
| Item | Feature gate | What it generates |
|---|---|---|
GrpcClient | auth (default) | from_endpoint_with_provider on tonic client structs |
GrpcNoAuthClient | unauthenticated | from_endpoint (no-auth) on tonic client structs |
keycloak_authenticated_service | auth (default) | Role-checking guards on impl Trait for Type blocks |
See each module and the grpc-macro crate for full documentation.
Modules§
- auth
- JWT interceptors, validation layer, and re-exports from
rust-auth-lib. - build_
support - Build-time helpers for compiling the bundled
.protodefinitions into Rust. - pool
- Process-wide gRPC channel pool.
Attribute Macros§
- keycloak_
authenticated_ service - Attribute macro applied to
impl Trait for Typeblocks that injects Keycloak role-checking guards into methods annotated with#[roles(...)].
Derive Macros§
- Grpc
Client - Derive macro that generates
from_endpoint_with_provideron a tonic client struct, wiring it intopool::get_channelwith JWT auth. - Grpc
NoAuth Client - Derive macro that generates
from_endpoint(no-auth) on a tonic client struct. Intended for test harnesses only; requires theunauthenticatedfeature.