2 unstable releases

0.2.0 Jun 27, 2020
0.1.0 Jun 1, 2020

#32 in #health

Download history 19/week @ 2024-02-19 38/week @ 2024-02-26 18/week @ 2024-03-04 15/week @ 2024-03-11 3/week @ 2024-03-18 13/week @ 2024-03-25 67/week @ 2024-04-01 14/week @ 2024-04-08 4/week @ 2024-04-15

98 downloads per month
Used in 4 crates

MIT/Apache

4KB
65 lines

Ops

Build Status Latest Version Latest Docs

Rust implementation of operational-endpoints-spec making it easy to add the standard endpoints to your application.

Usage

use ops::{StatusBuilder, server};

#[tokio::main]
async fn main() {
    let status = StatusBuilder::always("my app", "a description");

    let server = server("0.0.0.0:3000".parse().unwrap(), status);

    server.await.unwrap();
}

Examples

See the examples folder for runnable examples.

License

Licensed under either of:

at your option.

Dependencies

~330–790KB
~19K SLoC