ops

Crates.ioops
lib.rsops
version0.6.0
sourcesrc
created_at2020-05-31 11:40:28.988565
updated_at2021-06-28 19:54:39.796495
descriptionAdds operational endpoints to your application
homepage
repositoryhttps://github.com/utilitywarehouse/rust-ops
max_upload_size
id248093
size66,540
Scott Raine (nylar)

documentation

https://docs.rs/ops/

README

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.

Commit count: 21

cargo fmt