Section III - library
We will now need to define the kafka
crate dependency in our share src/lib.rs
library.
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:
To add the broker module to our library, we declare it at the bottom of our src/lib.rs
file, (after the couchdb module).
Last updated
Was this helpful?