<commit_before># rust-mesos

[![Build Status](https://travis-ci.org/bonifaido/rust-mesos.png?branch=master)](https://travis-ci.org/bonifaido/rust-mesos)

Rust library for [Apache Mesos](http://mesos.apache.org).

## Prerequisites

- [Apache Mesos](http://mesos.apache.org)
- [Rust](http://rust-lang.org)

## Building

This project is built using [cargo](http://doc.crates.io) against the latest nightlies.

```
$ cargo build
```

The protobuf code was generated using
[rust-protobuf](https://github.com/stepancheg/rust-protobuf).
<commit_msg>Added instructions to the README.md<commit_after># rust-mesos

[![Build Status](https://travis-ci.org/bonifaido/rust-mesos.png?branch=master)](https://travis-ci.org/bonifaido/rust-mesos)

Rust library for [Apache Mesos](http://mesos.apache.org).

## Prerequisites

- [Apache Mesos](http://mesos.apache.org)
- [Rust](http://rust-lang.org)
 
Rust Mesos depends on the MesosMasterInfo in Zookeeper to be published in JSON format and thus Mesos master or the upcoming 0.24 (see [this commit](https://github.com/apache/mesos/commit/18e1351b3c5c24f7f65be66ee56889a6378ba97f)).

## Building

This project is built using [cargo](http://doc.crates.io) against the latest nightlies.

```bash
$ cargo build
```

The protobuf code was generated using
[rust-protobuf](https://github.com/stepancheg/rust-protobuf).

## Running the example framework

Your mesos master and slave must be running and register themselves to `zk://127.0.0.1:2181/mesos`.

Then you can execute the [example framework](examples/framework_example.rs) with

```bash
$ cargo run --example framework_example
```

or if you prefer verbose logging inside the mesos crate with

```bash
$ RUST_LOG="mesos=debug" cargo run --example framework_example
```

{'fraction_non_alphanumeric': 0.143917761279269, 'fraction_numerical': 0.02227298686464877, 'mean_word_length': 4.898989898989899, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3412604', 'n_tokens_mistral': 620, 'n_tokens_neox': 584, 'n_words': 143}