In the c++ code:
```
#include "rust_lib/src/lib.rs.h"
// ...
extern "C" {
void rust_initialize();
void rust_process(const char *data);
void rust_terminate();
}
// ...
std::cout << "CALLING RUST CODE" << std::endl;
rust_initialize();
rust_process("aaa");
rust_process("bbbbb");
rust_process("cccccccccc");
rust_terminate();
std::cout << "CALLED RUST CODE" << std::endl;
```