22 releases (11 breaking)

0.12.3 Sep 26, 2024
0.12.1 Jul 17, 2024
0.11.0 Feb 8, 2024
0.10.2 Sep 28, 2023
0.2.0 Jul 23, 2020

#400 in Network programming

Download history 143662/week @ 2024-07-27 144624/week @ 2024-08-03 266168/week @ 2024-08-10 298249/week @ 2024-08-17 301468/week @ 2024-08-24 246459/week @ 2024-08-31 333559/week @ 2024-09-07 280434/week @ 2024-09-14 340869/week @ 2024-09-21 335524/week @ 2024-09-28 381103/week @ 2024-10-05 237560/week @ 2024-10-12 250296/week @ 2024-10-19 239264/week @ 2024-10-26 217394/week @ 2024-11-02 352444/week @ 2024-11-09

1,108,150 downloads per month
Used in 48 crates (32 directly)

MIT license

510KB
10K SLoC

tonic-health

A tonic based gRPC healthcheck implementation. It closely follows the official health checking protocol, although it may not implement all features described in the specs.

Please follow the example in the main repo to see how it works.

Features

  • transport: Provides the ability to set the service by using the type system and the NamedService trait. You can use it like that:
    let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
    let client = HealthClient::new(conn);

lib.rs:

A tonic based gRPC healthcheck implementation.

Example

An example can be found here.

Dependencies

~4–10MB
~103K SLoC