consul 0.0.2

Rust client libray for Consul HTTP API
Documentation

consul-rust (Incomplete implement)

Build Status

Rust client libray for Consul HTTP API

Usage

    extern crate consul;

    use std::collections::HashMap;

    fn main(){
        let catalog1 = consul::catalog::Catalog::new("127.0.0.1:8500");
        let services: HashMap<String, Vec<String>> = catalog1.services();
        println!("{}", services);
    }

For more example, see the tests .

Installation

Simply include the consul-rust in your Cargo dependencies.

[dependencies]
consul = "*"