knusbaum_consul

Crates.ioknusbaum_consul
lib.rsknusbaum_consul
version0.2.0
sourcesrc
created_at2019-06-02 15:29:28.656263
updated_at2019-06-02 15:29:28.656263
descriptionPatched version of the Rust client libray for Consul HTTP API
homepage
repositoryhttps://github.com/knusbaum/consul-rust
max_upload_size
id138506
size34,351
Kyle Nusbaum (knusbaum)

documentation

https://docs.rs/consul/

README

consul-rust

Build Status

See the documentation here.

Rust client library for the Consul HTTP API.

Usage

extern crate consul;

use consul::Client;
use std::collections::HashMap;

fn main() {
    let client = Client::new("http://127.0.0.1:8500");
    let services: HashMap<String, Vec<String>> = client.catalog.services().unwrap();
    println!("{:?}", services);
}

For more examples, see the tests.

Installation

Simply include consul-rust in your Cargo dependencies.

[dependencies]
consul = "0.1"
Commit count: 88

cargo fmt