Registry / networking / tonic-reflection

tonic-reflection

JSON →
library0.14.6rscratesunverified

Server Reflection module of tonic gRPC implementation, enabling runtime service discovery.

# Cargo.toml [dependencies] tonic-reflection = "0.14.6"
INSTALL
IMPORT
SIG · TONIC-REFLECTION
T
tonic-reflection
networkingrustv0.14.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ServerReflection
✓ use tonic_reflection::server::ServerReflection;

Registers a service for gRPC server reflection.

use tonic_reflection::server::ServerReflection; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let reflection = ServerReflection::new() .register_service("my.package.MyService"); // Add to tonic server Ok(()) }
Debug
Known issues
gotchaRequires tokio runtime and tonic server setup.
fix
Ensure tokio is in dependencies and server is configured.
affects: >=0.1.0
Upgrade
Version history
0.14.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
OpenAI (training)
1
Resources
tonic-reflection — cargo add tonic-reflection · libregistry