2 unstable releases
0.2.0 | Jun 27, 2020 |
---|---|
0.1.0 | Jun 1, 2020 |
#36 in #ops
Used in 4 crates
4KB
65 lines
Ops
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:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~255–700KB
~17K SLoC