# Section III - library

> [lib.rs](https://github.com/dsietz/rust-daas/blob/master/src/lib.rs)

We will now need to define the `kafka` crate dependency in our share `src/lib.rs` library.

```
extern crate kafka;
```

Next, let's make our life easier by defining soem shared variables that we will be using throughout the library when interacting with the Kafka broker. Just after the line `static VER: &str = "v1";` add the following statements:

```
pub static DELIMITER: &str = "-";
pub static KAFKA_BROKERS: &str = "localhost:9092";
static ZOOKEEPER_DIR: &str = "C:/kafka/kafka_2.12-2.2.0";
```

To add the *broker* module to our library, we declare it at the bottom of our `src/lib.rs` file, (after the couchdb module).

```
pub mod broker;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://davidsietz.gitbook.io/workspace/module-03/03-section-03/03-section-03-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
